Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
git [2019/02/08 09:36] – dani | git [2019/12/23 08:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 23: | Line 23: | ||
file: | file: | ||
file: | file: | ||
- | file: | + | file: |
file: | file: | ||
file: | file: | ||
Line 51: | Line 51: | ||
git ls-files -m -d -u -c | git ls-files -m -d -u -c | ||
</ | </ | ||
+ | |||
|-m|Show modified files in the output | |-m|Show modified files in the output | ||
|-d|Show deleted files in the output | |-d|Show deleted files in the output | ||
Line 60: | Line 61: | ||
git remote -v update | git remote -v update | ||
Fetching origin | Fetching origin | ||
- | From ssh://dev.daniel-steiner.org/ | + | From ssh://dev.dsteiner.ch/ |
= [up to date] master | = [up to date] master | ||
= [up to date] from_svn | = [up to date] from_svn | ||
Line 67: | Line 68: | ||
*.scpt | *.scpt | ||
</ | </ | ||
+ | |||
|**Note: | |**Note: | ||
Line 74: | Line 76: | ||
git rm --cached *.scpt | git rm --cached *.scpt | ||
</ | </ | ||
- | ||Everything is up to date here!| | + | |
+ | |**Note:**|Everything is up to date here!| | ||
===== Search in log ===== | ===== Search in log ===== | ||
Line 118: | Line 121: | ||
git difftool -r 55c5af0 cced6b2 < | git difftool -r 55c5af0 cced6b2 < | ||
</ | </ | ||
- | * Show staged diffs:< | + | * Show staged |
git diff --cached | git diff --cached | ||
</ | </ | ||
Line 179: | Line 182: | ||
git checkout < | git checkout < | ||
</ | </ | ||
- | |||
|**1**|Using a commit id | | |**1**|Using a commit id | | ||
|**2**|Using another branch| | |**2**|Using another branch| | ||
- | + | |**Note:**|This is only working, if the path in repository is the same!| | |
- | ||This is only working, if the path in repository is the same!| | + | |
* To get the content and write that into a file, use this command:< | * To get the content and write that into a file, use this command:< |