Home > AI > Git >

git

show files about to push

git diff --stat --cached [remote/branch]

For example

git diff --stat --cached origin/master

Create a remote branch

git checkout -b {branch-name}
git push {remote-name} {branch-name}

Delete a remote branch

$ git push origin --delete {remote-branch-name}

Delete a local branch

$ git branch -d {local-branch}

Clone a specific branch

$ git clone -b {branch-name} {repo-url}

Leave a Reply