![]() Git merge is used to join two lines of history. The more generic version in modern git (assuming that upstream / tracking information exists) would be to use simply $ git log is synonym for see gitrevisions manpage). origin/master, which is equivalent to git log HEAD.origin/master, which when on 'master' branch is equivalent to git log master.origin/master would list all commits that are on 'master' branch in remote repository and are not in local 'master' branch where you do your work. If you are on (default) 'master' branch, then git log. origin/masterĪs you can see 'origin/master' is 'master' in origin. This (among others) means that any branch 'A' ('refs/heads/A') in origin remote (repository you cloned from) would be saved as 'origin/A' ('refs/remotes/origin/A'). ![]() git/config file, you would see the following fragment:įetch = +refs/heads/*:refs/remotes/origin/* This means that 'origin/master' stores where 'master' is on 'origin' repository. For example you should see something like 7987baa.2086e7b master -> origin/master When you are fetching git tells you where it stores each branch on remote repository it fetches. It also fetches branches from remote repository and stores them as remote-tracking branches. Git fetch grabs changes from remote repository and puts it in your repository's object database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |