tips:git

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
tips:git [2018/09/18 14:03] – [integrate changes from one branch into another branch] scipiotips:git [2019/03/13 09:30] (current) – [apache git] scipio
Line 74: Line 74:
  
  
 +===== create branch with current changes =====
 +
 +<code>
 +git checkout -b newBranch
 +</code>
 +
 +===== tag =====
 +
 +<code>
 +git tag -a v1.1 -m "versione 1.1"
 +git push origin v1.1
 +</code>
 ===== new remote branch ===== ===== new remote branch =====
  
Line 191: Line 203:
 </code> </code>
  
 +===== submodule =====
 +
 +<code>
 +cd <submodule>
 +git checkout master
 +git branch -u origin/master master
 +cd <parent>
 +git config -f .gitmodules submodule.<submodule>.branch master
 +</code>
  • tips/git.1537272186.txt.gz
  • Last modified: 2018/09/18 14:03
  • by scipio