My CLI CheatSheet
Origin === probable-guide.github.com. Origin is a variable which points to the URL which stores the remote repo
A repo in the cloud. origin
points to the remote repo
git clone https://github.com/peter-yeh/ComputerOS.git
git pull
git status
git log
git log --graph
git add .
git commit -m 'First commit'
git push
git checkout -b "dev-yuki
git checkout dev
git pull
git checkout dev-yuki
git merge dev
git stash save "stash message"
git stash -u
git stash show
git stash list
git stash pop
git merge feature
// call in master branch
git merge --abort
git reset HEAD^
git clean -df
git restore .
git push origin +HEAD
scp lab1.tar.gz yuchun@sunfire.comp.nus.edu.sg:lab1.tar.gz
scp -r lab1.tar.gz yuchun@xcne5:lab1.tar.gz
gcc ex1.c -o ex1.exe
./ex1.exe < test1.in
./ex1.exe < test1.in > myOut1.txt
diff test1.out myOut1.txt
gunzip -c lab1.tar.gz | tar xvf -
yes | rm -r folder
// for sunfire since it keeps asking confirmation
rm -r folder
// for xcne