Git Cheat Sheet: Difference between revisions

From chriesibaum wiki
Jump to navigation Jump to search
(Created page with " * [https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server Setting-Up-the-Server]")
 
No edit summary
Line 1: Line 1:
=Local GIT Repos=
* [https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server Setting-Up-the-Server]
=Github=
==Signing commits using GPG==
* https://gist.github.com/ankurk91/c4f0e23d76ef868b139f3c28bde057fc


==tweaks==
===how to change commit message===


* [https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server Setting-Up-the-Server]
GitHub's instructions for doing this:
 
# On the command line, navigate to the repository that contains the commit you want to amend.
# Type <syntaxhighlight lang="bash" inline>git commit --amend</syntaxhighlight> and press Enter.
# In your text editor, edit the commit message and save the commit.
# Use the <syntaxhighlight lang="bash" inline>git push --force example-branch</syntaxhighlight> command to force push over the old commit.

Revision as of 16:59, 11 February 2021

Local GIT Repos


Github

Signing commits using GPG

tweaks

how to change commit message

GitHub's instructions for doing this:

  1. On the command line, navigate to the repository that contains the commit you want to amend.
  2. Type git commit --amend and press Enter.
  3. In your text editor, edit the commit message and save the commit.
  4. Use the git push --force example-branch command to force push over the old commit.