algorithm-archive: Problem with Git
Hey guys,
I’m a beginner with Git and I red this tutorial : https://github.com/johhnry/algorithm-archive/blob/master/chapters/principles_of_code/version_control.md
I succeeded installing git and cloning the algorithm-archive repository localy.
But it seems really confusing to me, I have an error with the command :
git push remote master
fatal: remote does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I would like to submit algorithms in C / Python and Processing to help the community.
Thanks in advance
Joseph
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (10 by maintainers)
When you fork the repo, you will have your own version of the algorithm archive on your profile. You can clone that and make changes. When you push those changes to your own repo, you can then submit a pull request with those changes using the pull request button that I think you have found.
I would suggest putting all your changes onto a local branch first (which can be created with
git checkout -b BranchName
) and adding a secondremote
withgit remote add upstream git@github.com:algorithm-archivists/algorithm-archive.git
. By doing this, you can easily pull the latest changes from the master branch of the Algorithm Archive (git pull upstream master
) and push your changes to your own branch (git push origin BranchName
). Before pushing your changes to your own branch, I would pull the changes fromupstream
to be sure you are up to date and that your changes work with the current version of the Algorithm Archive.You can create multiple branches with multiple changes, if you like and checkout the code on each branch with
git checkout BranchName
.I hope that was clear. Let me know if you have further questions!
Thanks for all your explanations, I’m currently seeing a tutorial on how to use Git. I’ll ask you if I have other questions.
Joseph