The Three States of Git
Cmds
set PATH=D:\path_to_git_folder\bin;%PATH%
git config --global user.name "AnyOne"
git config --global user.email "anyone@any.what"
git config --list
# ignore folder, ignore type of files __pycache__/ *.py[cod] # ignore build folder build/
git init
git add *.html git commit -m "starter files added"
git status
git branch -m master main
git add .
git add -A
git add -u
git log
git archive --format=zip -o project_code.zip HEAD project_code
git clone https://proj_url/project.git
git remote -v
git branch -a
git branch
git diff
git pull origin branch-name git push origin branch-name
git branch export-feature
git checkout export-feature
git push -u origin export-feature
git checkout main git merge export-feature
git branch --merge
git branch --no-merged
Extra Tips:
git branch -d export-feature
"git.path": "D:\\App_Dev\\PortableGit\\bin\\git.exe",