Commit Graph

254 Commits

Author SHA1 Message Date
Arnab Nandy a8f70a05dc Fix:git checkout -- <file_name> is incorrect #177 2023-04-06 10:41:48 +05:30
Mohammad Javad Nikbakht 1c37e6b3eb
A Persian version of README file link Added 2021-08-13 02:48:19 +04: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 f7c92fd9ea
Merge pull request #186 from AdrianSkar/patch-1
alternatives: create and switch new branch
2021-05-04 15:10:56 -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 e1b98f70b8
Merge pull request #187 from edycutjong/typofix/restore-delete-file-extra-caret
Fix typo extra caret in git command Restore delete file.
2020-12-18 11:42:43 -08:00
Edy Cu d1835c92df Split git variable to avoid confusion symbol vertical line for pipeline and OR 2020-08-25 23:15:27 +07:00
Edy Cu 442d880d4c Fix typo extra caret in git command Restore delete file. 2020-07-30 19:40:51 +07:00
Adrian Skar 8305c4a4c6
alternatives: create and switch new branch
Add alternative to 
`996 ## Create and switch new branch`
using git switch 
ref: https://git-scm.com/docs/git-switch
2020-07-16 17:41:10 +02:00
biesiadamich 36c15874fd
update readme (#185)
added Polish link
2020-05-07 14:18:04 -07:00
hemanth.hm daf32cf5ad Revert "[WIP] Polish version (#180)"
This reverts commit 512ec7764c.
2020-04-28 12:48:35 -07:00
Michal 512ec7764c
[WIP] Polish version (#180)
* update README.md

first changes

* update README.md

few changes

* update readme

changed until git-stash

* update readme

updated until 987L

* update readme

updated internal links

* update readme

updated internal links

* update readme

small fix

* update readme

updated with internal links

* update readme

small fixes

* update readme

small fix

* update readme

small fixes
2020-04-04 07:32:08 -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 b3cb087c34 Add Nepali Localization 2019-03-20 13:48:45 +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
taisuke.isobe a536d92856 add japanese translation 2019-01-02 15:02:25 +09: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 bc28055585
Fix to follow redirect
As per #154, change to -L so that the redirect gets followed. As written this line downloads the html redirect page.
2018-11-05 12:25:32 +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
hemanth.hm f5b193cfaa
Merge pull request #153 from eliranmal/master
add a tip to remove sensitive data from history (after a push)
2017-12-03 10:11:26 +05:30
John Pham 4bf33b3258
Add a translation link for Vietnamese 2017-11-27 12:14:07 +07:00
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
mingrammer f65336b83d Add a translation link for korean 2017-06-26 01:07:39 +09:00
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
hemanth.hm 8aa8aa8692 Merge pull request #142 from blackjid/patch-1
Add alternative to remove remote tag
2017-03-28 13:52:11 +05:30
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
Juan Ignacio Donoso af614c269e Add alternative to remove remote tag 2017-03-11 22:06:49 -05: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