Commit Graph

211 Commits

Author SHA1 Message Date
Hemanth.HM 96124215b6 Tip: Use SSH instead of HTTPs for remotes. 2018-07-25 11:26:51 +05:30
Diogo Lemos c46d4a737e Add first commit from branch alternative 2018-04-24 20:15:37 +01:00
Léni Marvaud 0286eb3314 Add change a branch base tips
Based on : https://stackoverflow.com/questions/10853935/change-branch-base

Tested on `git version 2.11.0 (Apple Git-81)` :
```bash-4.3$ git --version
git version 2.11.0 (Apple Git-81)
bash-4.3$ git checkout -b test-rebase-onto
Switched to a new branch 'test-rebase-onto'
bash-4.3$ touch "test-to-rebase"
bash-4.3$ git add test-to-rebase
bash-4.3$ git commit -m "Commit to rebase"
[test-rebase-onto 11d1cdd] Commit to rebase
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 test-to-rebase
bash-4.3$ git log
bash-4.3$ git rebase --onto master dev
Applying: Commit to rebase
bash-4.3$ git log```
2018-03-21 20:33:52 +01:00
Cristian Umaña 26e8a7be82 An alternative with shorter hash, author and relative date for "Visualize the version tree." tip, has been added. 2018-03-08 16:48:00 -06:00
Mohit Agarwal a7b9fbf3b1
Fix difftool example
The example currently reads:

    git difftool -t <commit1> <commit2> <path>

This would cause `commit1` to be considered as the diff tool.
2017-12-20 15:13:08 +05:30
eliranm 3b0185e443 add a tip to remove sensitive data from history (after a push) 2017-10-30 12:24:22 +02:00
lukabot 741782cdb0
Remove duplicated command 2017-10-24 11:14:00 +09:00
Chaithanya Ganta 33dc77736c Push a new local branch to remote and track 2017-08-08 15:56:10 +05:30
Hemanth.HM 39d1012fc9 Checkout a commit prior to a day ago. 2017-04-06 07:42:50 +05:30
eliranm 18f4724757 fix broken link 2017-03-28 11:29:18 +03:00
eliranm b0d87788ef update sync with remote title for brevity 2017-03-28 11:17:39 +03:00
eliranm 1d4eca0e25 update sync with remote title for brevity 2017-03-28 11:16:50 +03:00
eliranm 2ce1f0fb06 update sync with remote title for brevity 2017-03-28 11:14:45 +03:00
eliranm 48a611a626 update sync with remote title for brevity 2017-03-28 11:13:33 +03:00
eliranm 3c766833b4 update "overwrite pull":
- rename to "sync with remote" for clarity
- add 'git clean' to ensure working tree is clean
2017-03-28 11:07:51 +03:00
eliranm 81f9099a1f add change by content search tip 2017-03-23 15:10:12 +02:00
Diogo Lemos e849a6f24a No need for git stash save 2017-02-24 11:54:08 +00:00
Diogo Lemos 3fe8a233c0 Add stash all 2017-02-24 11:54:02 +00:00
Diogo Lemos c8abe4cc13 Add stash of unstaged changes to tracked files 2017-02-24 11:39:21 +00:00
Sina Siadat f9ec0251aa Fetch origin, not --all 2017-02-24 14:19:12 +03:30
Diogo Lemos 9dc216197a Add git status short 2017-02-23 10:15:03 +00:00
Diogo Lemos 7d8adcb407 Add list all git aliases 2017-02-22 17:26:38 +00:00
shfshanyue e574325d66 Add tip: git stash save <message> 2017-02-21 16:35:57 +08:00
shfshanyue 6fd5b4b52d Add tip: git log -n 2017-02-21 14:20:15 +08:00
shfshanyue 1274a98aba Add alternative for git checkout - 2017-02-16 10:29:36 +08:00
Hemanth.HM 0bc5364128 Backup untracked files. 2017-01-30 15:54:29 +05:30
Hemanth.HM 7b0e0e471c ls-remote 2017-01-27 17:06:32 +05:30
Hemanth.HM 3261e1fb66 pull-request command 2017-01-27 09:39:56 +05:30
Hemanth.HM 2b772cda5b Exclude author from logs 2017-01-16 22:07:20 +05:30
Hemanth.HM e6bbc59418 logs between date range 2017-01-16 22:04:23 +05:30
Hemanth.HM e88ee1e1c9 Get the repo name. 2017-01-08 17:53:01 +05:30
Hemanth.HM 5d23b75504 format-patch 2016-12-25 21:23:02 +05:30
Hemanth.HM 16b9349d48 show a Git logical variable. 2016-12-12 20:16:32 +05:30
Hemanth.HM 9e7c67ed6c blame on certain range 2016-10-31 21:18:46 +05:30
Hemanth.HM 6886c2c8f6 edit git config 2016-10-31 20:11:51 +05:30
Hemanth.HM 318484a77f add everything but whitespace changes 2016-10-24 21:40:06 +05:30
Hemanth.HM a7cb20ee0f List unpushed git commits. 2016-10-11 14:34:11 +05:30
Hemanth.HM 9ae20580d5 Find common ancestor of two branches. 2016-10-05 15:51:17 +05:30
Ankur Kumar 50bb41326f Add alternative for rebase on pulls (git < 1.7.9) (#126) 2016-10-05 15:48:35 +05:30
Hemanth.HM c42ade5ba4 fetch ref 2016-10-03 08:53:15 +05:30
Steve Binkowski d2bf9e8c63 Find common ancestor of two branches 2016-09-28 12:37:48 -04:00
Steve Bink 59de6a8b80 Apply commit from another repository (#124) 2016-09-28 21:43:13 +05:30
Hemanth.HM 814bafcaa2 show all the git-notes 2016-09-24 23:11:34 +05:30
Hemanth.HM 9007100789 git-notes 2016-09-24 23:10:03 +05:30
Hemanth.HM dca76041d8 wrong alternatives were removed 2016-08-29 10:54:26 +05:30
Gianluca Casati 9d7a837add added alias: git undo (#123)
Credits to [Enrico Campidoglio](http://megakemp.com/about/),
see [original article](http://megakemp.com/2016/08/25/git-undo/).
2016-08-26 17:11:30 +05:30
Hemanth.HM 08096c7c71 fixes #58 2016-08-15 23:46:27 +05:30
Hemanth.HM 3357955baa Fixed #117 2016-08-15 23:43:07 +05:30
Hemanth.HM 9f75591eef fixes #118 2016-08-15 23:42:05 +05:30
S N Munendra 81040e9500 count commits in a branch (#122) 2016-08-14 20:36:13 +05:30