Public Draft

https://git-scm.com/

https://git-scm.com/downloads/linux

https://git-scm.com/downloads/mac

https://git-scm.com/downloads/win

GIT Commands

git init
git status
git add .		# Add files from staging area
git reset .  	# Remove files from staging area
git checkout --
git commit - m "Text"
git branch new-branch
git checkout new-branch
git merge new-branch
git log --all --graph
git config --global alias.s "status"	# Set alias in git
git config --global alias.cm "commit -m"
git config --global user.email "your@example.com"
git config --global user.name "Your Name"
.gitignore  # file to put ignored file
git commit --amend  --reset-author
git commit -m "Text" --amend 		# Add aditional files to same version
git checkout commit_hash	# go to previous version
git checkout commit_hash File, dir or . # Restore file from previous version
git commit -m
git restore
git branch -M main
git remote add origin 
git push -u origin main
git remove origin
git pull 
git push origin main --set-upstream
git push origin main -f 
git clone  git  folder 
git fetch				# Get changes
git branch			# List local
git branch -r			# List remote
git branch -a		#List all
git checkout --track origin/my-branch-name  # Switch to remote branch
git branch -d		# Delete
git branch -D		# Force delete
git push origin --delete my-branch-name    # Delete remote branch