For the remote branch, I created a free github account and created a repository in there.
Clone remote repository
git clone https://github.com/vivekmenondotnetanalysis/Repo1.git
First push to gitserver
git push --set-upstream origin master
Subsequent pushes to gitserver
git push
Show local branches
git branch
Show remote branches
git branch -r
Show remote url
git remote -v
Get data from remote repository
git fetch
Merge the fetched data
git merge
Fetch and merge in one step
git pull
Tag a branch with v1.0
git tag v1.0
Tag a branch with v1.0 and add a message
git tag -a v1.0
Create a signed tag
git tag -v v1.0
List all tags
git tag -l
Get the code with tag v1.0
git checkout tags/v1.0
Get the code with tag v1.0 and create a new branch named b1 with that code
git checkout tags/v1.0 -b b1
Push with tags
git push --tags
Clone remote repository
git clone https://github.com/vivekmenondotnetanalysis/Repo1.git
First push to gitserver
git push --set-upstream origin master
Subsequent pushes to gitserver
git push
Show local branches
git branch
Show remote branches
git branch -r
Show remote url
git remote -v
Get data from remote repository
git fetch
Merge the fetched data
git merge
Fetch and merge in one step
git pull
Tag a branch with v1.0
git tag v1.0
Tag a branch with v1.0 and add a message
git tag -a v1.0
Create a signed tag
git tag -v v1.0
List all tags
git tag -l
Get the code with tag v1.0
git checkout tags/v1.0
Get the code with tag v1.0 and create a new branch named b1 with that code
git checkout tags/v1.0 -b b1
Push with tags
git push --tags
No comments:
Post a Comment
Comments will appear once they have been approved by the moderator