Archive | Git RSS for this section

Git Flow Command

To list/start/finish feature branches, use:

git flow feature
git flow feature start [name] [base]
git flow feature finish [name]

To push/pull a feature branch to the remote repository, use:

git flow feature publish [name]
git flow feature pull [remote] [name]

To list/start/finish release branches, use:

git flow release
git flow release start [release] [base]
git flow release finish [release]

To list/start/finish hotfix branches, use:

git flow hotfix
git flow hotfix start [release] []
git flow hotfix finish [release]

To list/start support branches, use:

git flow support
git flow support start [release] [base]

Source: https://github.com/nvie/gitflow

Git change remote URL

git remote -v
# View existing remotes

# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)

git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL

git remote -v
# Verify new remote URL

# origin https://github.com/user/repo2.git (fetch)
# origin https://github.com/user/repo2.git (push)