git init
touch filename.txt
git add filename.txt
git add filname1.txt filename2.txt
git commit -m '메세지 입력' filename.txt
git remote add origin https://<username>:<token>@github.com/<repository>.git
git push origin master
git pull origin master
git clone https://<username>:<token>@github.com/taeho8271/branch_project.git
git branch
git branch -r # remote 조회
git branch -a # all
git branch <branchname>
git checkout <branchname>
git chekcout -b <branchname>
git push origin <branchname>
git branch -d <branchname>
git push origin --delete <branchname>
cat > <filename>
내용 입력
후 Ctrl + D
cat >> <filename>
내용 입력
후 Ctrl + D
git config --global core.editor '<editorname> --wait'
git config --global -e
[diff]
tool = vscode
[difftool "vscode"]
cmd = "code --wait --diff $LOCAL $REMOTE"
git diff <branchname1> <branchname2>
git difftool <branchname1> <branchname2>
git difftool <commit1code> <commit2code>
git difftool HEAD HEAD^
git difftool HEAD
git difftool master origin/master
git merge <targetbranchname>
git mergetool
이후 다시 git add filename & git commit 해주기!
git tag <commitcode>
git push origin <tagname>
git tag
git show <tagname>
git tag --delete v0.3
git push --delete origin v0.3