Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 968 Bytes

File metadata and controls

42 lines (28 loc) · 968 Bytes

Git

Config

Command Description
git config -l Show config list
git config --global user.name Global user
git config user.name Local user

Cloning with Token

git clone https://[TOKEN]@github.com/[REPO-OWNER]/[REPO-NAME]

Force with Lease

Stash

Resources

Commands

Command Description
git stash drop Drop a stash
git stash clear Clear all stashes
git stash branch <BRANCH_NAME> <STASH_ID> Create branch from stash

Example:

git stash branch branch_1 stash@{1}