> git clone [git url]
By default the branch is master
> git branch
* master
create a branch with the current repository
> git branch publish
check the new created branch by
> git branch
* master
publish
Change the default repository
> git checkout publish
Now you can see the Head is pointing to the publish branch
> git branch
master
* publish
Now change something in the repository or add any file and the
> git push master publish
To see the difference Do
> git checkout master
Whatever changes you have made in the previous check-in will not be reflected in the current repository
Thursday, January 21, 2010
Subscribe to:
Posts (Atom)