github - ios app dev - Page 2 2ua76m

git enables you to save modified versions of files in a directory
restore to a version and one click publish(private or publicly) to the guthub site AKA commit

open a github at : https://github.com

install git for windows : https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
if you have mac it is already installed probably

install git desktop : https://desktop.github.com/

git jutsus with terminal :

vim file.exe // edit a file from the terminal
I for insert
esc, shift colon x // exit vim
git init // type this when you are in your projects directory
esc, :wq or :x // exit vim
git status // get file versions data moded and newly created files
git add file.exe // add file to be git tracked or updated (after modification)
git add -A // add all files in dir for tracking
git commit -m "1st commit" // save file ver with title for said ver
git log // get git commits history
git checkout paste 7 1st chars from the version you want from git log // restore to file version
git branch //
git checkout -b name // pulls all changes from said git branch and makes it the active version