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 [2018/01/19 23:12]
root
wiki:ostatni:git:start [2020/12/26 20:07] (current)
root
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 *** ** Pridani Remote Repository ***
Line 37: 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 |}} {{ :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.1516399942.txt.gz · Last modified: 2018/01/19 23:12 by root