Git merge are quoting the shortcut in the example to prevent the shell from interpreting it. This is how the above commands would look like with the shortcut: git fetch If you don't want to type the branch name every time you run this command, Git has a nice shortcut pointing to the upstream branch: An upstream branch is the branch in the remote repository that you push to and fetch from. This step will reset the branch to its unmodified state, thus allowing git merge to work. This means that you add one more step between fetching the remote changes and merging them. All you care about is being up to date with the upstream. Perhaps you modified a file to experiment, but you no longer need the modification. In this case, you just want to drop all the uncommitted local changes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |