--- title: Git magic tags: git --- ## clone a git repository with submodules ``` git clone xx git submodule init git submodule update ``` ## delete branch delete branch locally `git branch -d localBranchName` delete branch remotely `git push origin --delete remoteBranchName` # merge master into feature branch ``` git checkout fun_feature git merge master ls git reflog git push origin fun_feature ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up