I am pretty new to git. I have been primarily checking stuff into a repository, but now I want to get the latest changes from another developer.
I tried to simply do a command like git pull
something ran, but it came back with a message like this:
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream develop origin/<branch>
So then I did git pull my_branch_name
and it came back with this:
fatal: 'develop' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
but I had done git checkout my_branch
right before that.
Could someone please let me know what I did wrong and how I can simply get the latest files that had been checked in?
Thanks!