Skip to content

Mini Guide

filux edited this page Nov 28, 2013 · 13 revisions

cloning:

git clone https://github.com/MegaGlest/megaglest-source.git .; git submodule init; git submodule update



update source:

git rebase


update submodule:

git submodule update // or git submodule update --recursive // need to try what is the difference


for start, basic steps for simpliest commit:

git status

^ check status


git add -u

^ adding every removed/moved/renamed file


git add .

^ adding every modified file and also every new one


git reset

^ if you just added a lot of files (git add ...) and it was somehow a mistake


git clean -ndX

^ check what was ignored, (probably some junk or nothing)


git commit -m 'message'

^ locally commit


push origin master

^ push to github



graphical tools:

gitg - very simple history viewer

gitk - ^ faster, but not as simple

qgit - ^ good, but based on qt (e.g. on KDE very good)

git gui - something like graphical commit helper

git cola - simmilar ^

Clone this wiki locally