This shows you the differences between two versions of the page.
Both sides previous 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:00] mricon |
||
---|---|---|---|
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> |