Git Basic


git preparation
git config
git config --list
user.name=***
user.email=***@gmail.com
core.autocrlf=input
core.editor=nano -w
color.ui=auto
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=https://github.com/***/***.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.main.remote=origin
branch.main.merge=refs/heads/main
git config --global user.email
git config --global user.name=***
git config --global user.email=***@gmail.com
git config --global core.autocrlf=input
git config --global core.editor=nano -w
git config --global color.ui=auto
git clone
git clone https://github.com/UWSEDS/hw0-cyclopropane2019.git
git initiation
git init
Make changes
stage changed files
git add
git add
git add -A
git commit -m 'first commit'
git remove
git rm [path]
create snapshot
git commit
git commit
git commit -m "[msg]"
expolre
git status
git log [options]
git show [sha1]
add remote
git remote add [name][url]
git remote add origin https://github.com/US/hw0.git
git remote -v
pull and push
git fetch [remote][branch]
git pull [remote][branch]
git push [remote][branch]