Git: Difference between revisions
No edit summary |
No edit summary |
||
Line 93: | Line 93: | ||
git branch -u origin/master master | git branch -u origin/master master | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! git ignore local and remote changes to a file | |||
|- | |||
| This is helpful for conf files that need local-specific modifications that shouldn't be pushed. You have to toggle it on/off as needed to get updates! See [http://stackoverflow.com/questions/4348590/how-can-i-make-git-ignore-future-revisions-to-a-file/39776107#39776107 my SO answer]. | |||
PREVENT COMMIT OF CHANGES TO A LOCAL FILE | |||
----------------------------------------- | |||
git update-index --skip-worktree apps/views/_partials/jsIncludes.scala.html | |||
RESET TO GET CHANGES AGAIN | |||
-------------------------- | |||
git update-index --no-skip-worktree apps/views/_partials/jsIncludes.scala.html | |||
LIST SKIPPED FILES | |||
------------------ | |||
git ls-files -v . | grep ^S | |||
S app/views/_partials/jsIncludes.scala.html | |||
----------------------------------------- | |||
|} | |||
=== CONFIGURATION === | === CONFIGURATION === |
Revision as of 18:37, 29 September 2016
TASKS
Expandgit merging conflicts after diverging |
---|
Expandgetting upstream commits into your GitHub fork |
---|
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 |
---|
Expandgit ignore local and remote changes to a file |
---|
CONFIGURATION
Expandgit visual difftool and mergetool setup |
---|
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 windows configure notepad++ editor |
---|
Expandgit fix push behavior - ONLY PUSH CURRENT doh |
---|
Expandgit multiple upstreams |
---|
From here...