Commit Graph

230 Commits

Author SHA1 Message Date
Arnab Nandy a8f70a05dc Fix:git checkout -- <file_name> is incorrect #177 2023-04-06 10:41:48 +05:30
hemanth.hm 1b89495cfb
Merge pull request #199 from itaikla/add-create-tag-tip
Add a tip for create local tag
2021-05-04 15:11:47 -07:00
hemanth.hm ba02cea81b
Merge pull request #197 from Masa-Shin/add-git-push-tip
Add a tip to omit writing branch names when push
2021-05-04 15:11:31 -07:00
hemanth.hm 6ed1ec9dfa
Merge pull request #190 from AdrianSkar/patch-1
add[alternative]: create and switch branch
2021-05-04 15:11:05 -07:00
Itai Klapholtz dc7a62b67d Add create local tag tip 2021-05-04 18:36:10 +03:00
Masahiko Shin c8eb026a86 Add a tip to omit writing branch names when push 2021-05-04 20:04:07 +09:00
Masahiko Shin ec4301cc2d Add a tip to view what's in a stash 2021-05-04 20:03:15 +09:00
Léni Marvaud 4f15d65b68
Add tips to delete local branches that has been squash and merged in the remote 2021-03-18 15:54:42 +01:00
hemanth.hm 40b03da99e
Merge pull request #184 from RedNik96/feature/git-stash-push
replacing `git stash save` by `git stash push`
2021-01-12 12:18:27 -08:00
rednik96 0eb60008aa replacing `git stash save` by `git stash push` 2021-01-10 11:46:57 +01:00
Adrian Skar 97047c7560
add[alternative]: create and switch branch
From #186.
2020-12-19 12:00:49 +01:00
Edy Cu 442d880d4c Fix typo extra caret in git command Restore delete file. 2020-07-30 19:40:51 +07:00
unknown a9d29fb4bc Add Prevent auto replacing LF with CRLF 2019-07-31 23:09:35 +09:00
max ebde7ca24b tips.json: submodule to latest commit 2019-04-18 11:43:06 +03:00
alizduwal 679bf0a1d7 Tips for log, reset and list currently configuyre remotes 2019-03-22 18:37:15 +05:45
Steve Nolte c333d5516f Change to the simpler merge-base command
Good to showcase this command as it also provides additional features
like --fork-point and --all.
2019-01-18 10:34:23 -06:00
hemanth.hm fa759b5cca
Merge pull request #167 from mvolz/patch-1
Add -L flag to follow redirect to get correct file
2018-11-18 23:16:11 -08:00
Marielle Volz 03f10d90fe
Add -L to follow redirects
As per the comments in #154, use -L to follow the redirect for curl. The tip as written does not currently work as it downloads the html for the redirect page instead.
2018-11-05 12:22:26 +00:00
lmarvaud 94b41fd437 Visualize the tree including commits that are only referenced from reflogs 2018-10-05 15:34:42 +02:00
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