User Tools

Site Tools


userdoc:cgit-meta-data

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
Next revision Both sides next revision
userdoc:cgit-meta-data [2018-04-03 18:49]
mricon
userdoc:cgit-meta-data [2018-04-03 19:02]
mricon
Line 11: Line 11:
 git rm -rf . git rm -rf .
 # add and commit any files you need, see below # add and commit any files you need, see below
-git push origin refs/​meta/​cgit+git push origin ​HEAD:refs/​meta/​cgit
 git checkout master git checkout master
 </​code>​ </​code>​
Line 17: Line 17:
 ===== Editing files in the special ref ===== ===== Editing files in the special ref =====
  
-It is a bit trickier to edit files in the special ref as opposed to a normal branch:+It is a bit trickier to edit files in the special ref as opposed to a normal branch.
  
 <​code>​ <​code>​
-git checkout ​refs/​meta/​cgit +git fetch origin ​refs/​meta/​cgit 
-git symbolic-ref HEAD refs/​meta/​cgit+git checkout FETCH_HEAD
 # make any changes and commit them # make any changes and commit them
-git push origin refs/​meta/​cgit+git push origin ​HEAD:refs/​meta/​cgit
 git checkout master git checkout master
 </​code>​ </​code>​
userdoc/cgit-meta-data.txt · Last modified: 2020-05-08 14:02 by mricon