git checkout -b new-branch old-branch; git push --set-upstream origin new-branch;
git checkout branchname
git add –A git commit –m "Some commit message" git checkout master Switched to branch 'master' git merge dev-branch (this is to merge changes from dev-branch to master) git push (push changes in master branch)
git log --pretty=oneline
git branch -d localBranchName
git push origin --delete remoteBranchName
git branch -a
git branch -r
git show-branch
git branch -m oldname newname
git branch -m newname
ls - ltrh
- checkout the branch first where you want to create the tag
- After that create tag and and push. Follow below commands in sequence
consider our tag name as 'release-v1.0'
- git checkout
- git tag . e,g. git tag release-v1.0
- git tag -a release-v1.0 -m "add comments" use it while adding comments with tag
- git push --tags
Delete a tag git tag -d
push a tag from local to origin branch git push origin -d release-v1.0