2024-06-03 07:04:29 -07:00

2.1 KiB

type, created, updated
type created updated
topic 2024-01-14T02:18:21.181Z 2024-03-31T16:09:07.756Z

Git

Git Cheat Sheet

git branch
# https://useyourloaf.com/blog/git-cheat-sheet/
git branch development          (create the branch named 'development')
git checkout development        (switch to the branch)
git checkout master             (switch back to the master branch)
git branch                      (list all branches)
git push origin development     (Pushing a branch)
git checkout master             (first switch to the master branch)
git merge development           (merge all changes from development into the master branch)
gid add <file>                  (fix and add any conflicts)
git commit -m 'merged changes'  (Merging a branch)
git branch -d development       (Delete a branch)
git push origin :development    (Deleting a remote branch)
git diff --name-only
git rebase -i master
git push origin -d branch-name
git fetch origin
git merge --ff-only origin/master
git checkout development
git merge --no-ff origin/master
git rm --cached D:/Documents/Notes/Cyberpunk-Red
git rm --cached D:/Documents/Notes/Quartz/Infineon/EC-Documentation
git tag -a {tag} -m "{tag description}"
git push origin --tags
git remote rm ubuntu
git remote rm messa017
git remote rm mestsa003
git remote rm mestsa07ec
git remote rm messa08ec
git remote rm eaf-prod
git remote rm azure
git -c http.sslVerify=false clone https://example.com/path/to/git
git push gogs --tags "refs/remotes/origin/*:refs/heads/*"
git ls-files --others --modified --deleted --exclude-standard
git ls-files --others --modified --deleted --exclude-standard | xargs
git ls-files --others --modified --deleted --exclude-standard | xargs -I % echo L:/Git/Notes-Infineon/.Infineon/%
L:/npm/prettier/node_modules/.bin/prettier --check | git ls-files --others --modified --deleted --exclude-standard | xargs -I % echo L:/Git/Notes-Infineon/.Infineon/%
# https://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413
client_max_body_size 5000m;
git branch -m master