![]() Now, if you look at your local branches, this is what you'll see: $ git branch As the previous line tells you, the branch is being set up to track the remote branch, which usually means the origin/branch_name branch. ![]() Here, "new branch" simply means that the branch is taken from the index and created locally for you. ![]() If you just want to take a quick peek at an upstream branch, you can check it out directly: $ git checkout origin/experimentalīut if you want to work on that branch, you'll need to create a local tracking branch which is done automatically by: $ git checkout experimentalĪnd you will see Branch experimental set up to track remote branch experimental from origin. Next, look at the local branches in your repository: $ git branchīut there are other branches hiding in your repository! You can see these using the -a flag: $ git branch -a Recentb = "!r() 1' done | ( echo \"ahead|behind||branch|lastcommit|message|authorįirst, clone a remote Git repository and cd into it: $ git clone git:///myproject # ATTENTION: All aliases prefixed with ! run in /bin/sh make sure you use sh syntax, not bash/zsh or whatever
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |