$ git clone ssh://[email protected]/git/geo2tag/ Initialized empty Git repository in /home/your_login/geo2tag/.git/ [email protected]'s password: remote: Counting objects: 9355, done.remote: Compressing objects: 100% (8905/8905), done. remote: Total 9355 (delta 4989), reused 0 (delta 0) Receiving objects: 100% (9355/9355), 19.32 Mi B | 83 Ki B/s, done. $ But it’s important to understand what this thing is realy mean: In contrast to the svn you haven’t got some main repository – you just have some parrent (origin) which from your pjogect was cloned.
I am writing things as I use them, so beware this post will still change several times in the future. (Updated: September 15th, 2014: revert last commit, get a branch/tag’s commit ID) (Updated: September 7th, 2012: make a local branch remote, check out a file from another branch) Updated: April 3rd, 2012: new repo with gitolite in the middle) (Updated: March 14th, 2011: git remote prune) (Updated: January 27th, 2011) (Updated: many other times…) …
See the branch was checked out, and switched to it.
remote: error: remote: error: You can set 'Current Branch' configuration variable to remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into remote: error: its current branch; however, this is not recommended unless you remote: error: arranged to update its work tree to match what you pushed in some remote: error: other way.
Total 13 (delta 3), reused 0 (delta 0) remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsist ent remote: error: with what you pushed, and will require 'git reset --hard' to matc h remote: error: the work tree to HEAD.
To delete a branch once you are done with it Once you have finished working on a branch and merged it into the master, you can delete the remote branch, both remotely and locally.