Top "Git-branch" questions

git-branch is the Git command that manages branches.

Git: How do I list only local branches?

git branch -a shows both remote and local branches. git branch -r shows remote branches. Is there a way to …

git git-branch
Default behavior of "git push" without a branch specified

I use the following command to push to my remote branch: git push origin sandbox If I say git push …

git branch git-branch git-push
How to replace master branch in Git, entirely, from another branch?

I have two branches in my Git repository: master seotweaks (created originally from master) I created seotweaks with the intention …

git merge git-branch
How do I list all remote branches in Git 1.7+?

I've tried git branch -r, but that only lists remote branches that I've tracked locally. How do I find the …

git branch git-branch remote-branch
Remove tracking branches no longer on remote

Is there a simple way to delete all tracking branches whose remote equivalent no longer exists? Example: Branches (local and …

git git-branch
How do I push a local Git branch to master branch in the remote?

I have a branch called develop in my local repo, and I want to make sure that when I push …

git git-branch remote-server git-push
Create Git branch with current changes

I started working on my master branch thinking that my task would be easy. After a while I realized it …

git git-branch
How do I commit only some files?

I have two projects. One is the "official" project and the second is a light modification (some files added). I …

git git-branch git-commit
Push commits to another branch

Is it possible to commit and push changes from one branch to another. Assume I commited changes in BRANCH1 and …

git git-branch
Move branch pointer to different commit without checkout

To move the branch pointer of a checked out branch, one can use the git reset --hard command. But how …

git git-branch