Skip to content

Instantly share code, notes, and snippets.

@questsin
Created February 20, 2019 16:48
Show Gist options
  • Save questsin/061427a708121607669e1017d667b412 to your computer and use it in GitHub Desktop.
Save questsin/061427a708121607669e1017d667b412 to your computer and use it in GitHub Desktop.
cd /path/to/my/codebase
git init
git add .
git add -A
git commit
git init project1
cd project1
touch file.txt
git add .
git commit -m”comment”
git fetch
git merge origin/master
rm -fr node modules
npm I
….
git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/IAMGeneratorTemplate
git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/cloudFormationInfraTemplate
git clone https://git-codecommit.us-east-1.amazonaws.com/v1/repos/AVCAMPLambdaCode
npm commit comments123
git commit -am “comment”
git branch branchname; git checkout branchname
git checkout -b branchname
git config
git init
git clone
git add
git rm
git commit
git status
git branch
git checkout
git merge
git reset
git stash
git tag
git fetch
git pull
git push
git remote
git log
git show
git ls-tree
git cat-file
git grep
git diff
gitk
git instaweb
git archive
git gc
git fsck
git prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment