Git: Difference between revisions
No edit summary |
|||
Line 94: | Line 94: | ||
git clone repo.git # (optional, if you want a live repo on the server where you have the bare repo) | git clone repo.git # (optional, if you want a live repo on the server where you have the bare repo) | ||
Then you can clean up old branches like daily and daily_grind, as needed. | Then you can clean up old branches like daily and daily_grind, as needed. | ||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! git convert bare to a mirror of remote (github, facebook, etc) | |||
|- | |||
| You need a bare mirror repo if you want to take someone else's repo and create your own bare to work from. | |||
If you did NOT specify --mirror when you first created the bare repo, you can convert to a mirror by adding these last two lines to config, underneath url: | |||
[remote "origin"] | |||
url = git@github.com:facebook/proxygen.git | |||
fetch = +refs/*:refs/* | |||
mirror = true | |||
Now you can fetch from the bare repo: | |||
git fetch | |||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" |
Revision as of 15:41, 12 August 2016
TASKS
Expandgit merging conflicts after diverging |
---|
Expandgit create new branch on server, pull to client |
---|
Expandgit pull when untracked files are in the way |
---|
Expandgit create new branch when untracked files are in the way |
---|
Expandgit recreate repo |
---|
Expandgit connect to origin after the fact |
---|
CONFIGURATION
Expandgit convert to a bare repo |
---|
Expandgit convert bare to a mirror of remote (github, facebook, etc) |
---|
Expandgit create merge-to command |
---|
Expandgit fix github diverge from local bare repo following README.md edit |
---|
Expandgit use kdiff3 as difftool and mergetool |
---|
Expandgit windows configure notepad++ editor |
---|
Expandgit fix push behavior - ONLY PUSH CURRENT doh |
---|
Expandgit multiple upstreams |
---|
From here...