User Tools

Site Tools


wiki:ostatni:git:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:ostatni:git:start [2017/12/05 12:43]
root
wiki:ostatni:git:start [2020/12/26 20:07] (current)
root
Line 1: Line 1:
 ====== Git ====== ====== Git ======
 Základní nastavení: Základní nastavení:
-<code>+<code bash>
 git config --global user.name "Lukas Kaplan" git config --global user.name "Lukas Kaplan"
 git config --global user.email "lukas.kaplan@lkaplan.cz"  git config --global user.email "lukas.kaplan@lkaplan.cz" 
Line 7: Line 7:
 git config --global credential.helper 'cache --timeout=3600'  git config --global credential.helper 'cache --timeout=3600' 
 git config --global core.editor nano git config --global core.editor nano
 +
 +git config --list
 </code> </code>
  
 ** Vytvoreni noveho projektu v Local repository ** ** Vytvoreni noveho projektu v Local repository **
   * git init   * git init
 +  * nebo git init jmenoprojektu
 +
 +** Pridani Remote Repository ***
 +  * git remote add origin https://github.com/lukaskaplan/aruba-rtls.git
  
 ** Stažení projektu z GitHubu: ** ** Stažení projektu z GitHubu: **
Line 34: Line 40:
   * git push   * git push
   * git push origin master   * git push origin master
 +
 +** Přejmenování / přesun souboru **
 +  * git mv <stary> <novy>
 +  * git status
 +
 +nebo
 +
 +  * mv <stary> <novy>
 +  * git rm <stary>
 +  * git add <novy>
 +  * git status
 +
 +{{ :wiki:ostatni:git:zt_git_cheat_sheet.pdf |}}
 +
 +====== Git Školeni CZ.NIC ======
 +
 +checkout - prepnuti na jinou vetev
 +
 +commit - prvni radek = predmet, pak vynechat radek a napsat delsi message
 +
 +Nedelat zmeny ve stavu detached HEAD (kdyz head ukazuje primo na konkretni commit namisto vetve), kdyzuz si udelat vetev napr. "hotfix"
 +
  
wiki/ostatni/git/start.1512474182.txt.gz · Last modified: 2017/12/05 12:43 by root