git
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| git [2018/11/12 13:50] – created odefta | git [2025/06/21 21:27] (current) – odefta | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| git reset HEAD~1 | git reset HEAD~1 | ||
| + | |||
| + | ====== Rename default branch master ====== | ||
| + | |||
| + | git config --global init.defaultBranch main | ||
| + | | ||
| + | This was done for ethical reasons. \\ | ||
| + | If the default ' | ||
| + | < | ||
| + | hint: Using ' | ||
| + | hint: is subject to change. To configure the initial branch name to use in all | ||
| + | hint: of your new repositories, | ||
| + | hint: | ||
| + | hint: git config --global init.defaultBranch < | ||
| + | hint: | ||
| + | hint: Names commonly chosen instead of ' | ||
| + | hint: ' | ||
| + | hint: | ||
| + | hint: git branch -m < | ||
| + | </ | ||
| + | |||
| + | ====== Disable https ssl verification ====== | ||
| + | |||
| + | git config --global http.sslVerify false | ||
| + | |||
| + | ====== Sync fork with original repo ====== | ||
| + | < | ||
| + | git remote add upstream https:// | ||
| + | git stash | ||
| + | git checkout master | ||
| + | git fetch upstream | ||
| + | git merge upstream/ | ||
| + | git stash pop | ||
| + | </ | ||
| + | |||
| + | ====== Merge changes form master branch in current branch ====== | ||
| + | |||
| + | < | ||
| + | git.exe merge remotes/ | ||
| + | </ | ||
| + | |||
| + | ====== Commit with another date ====== | ||
| + | |||
| + | < | ||
| + | GIT_AUTHOR_DATE=" | ||
| + | </ | ||
| + | |||
| + | ====== Get all log details (including committer date) ====== | ||
| + | |||
| + | < | ||
| + | git log --pretty=fuller | ||
| + | </ | ||
git.1542030620.txt.gz · Last modified: (external edit)
