Editing Git

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 17: Line 17:
 
=== Git Installation ===
 
=== Git Installation ===
 
# Download Git from https://git-scm.com/downloads.
 
# Download Git from https://git-scm.com/downloads.
# Install Git. (MacOS: <code>[[brew install git]]</code>)
+
# Install Git. (MacOS: <code>brew install git</code>)
# apt install git or apt install [[git-all]]
 
  
 
=== Copy an existing remote repository ===
 
=== Copy an existing remote repository ===
Line 52: Line 51:
 
{{git log}}
 
{{git log}}
  
=== [[git show]] ===
+
=== Git show ===
 
* <code>[[git show]] 3c88ad72430</code>
 
* <code>[[git show]] 3c88ad72430</code>
  
Line 63: Line 62:
 
* <code>git log --decorate=full --simplify-by-decoration</code>
 
* <code>git log --decorate=full --simplify-by-decoration</code>
 
* Print lines matching a pattern:<code>git grep TEXT_TO_SEARCH</code>
 
* Print lines matching a pattern:<code>git grep TEXT_TO_SEARCH</code>
* <code>[[git merge]]</code><ref>https://dev.to/neshaz/how-to-use-git-merge-the-correctway-25pd</ref>
+
* <code>git merge</code><ref>https://dev.to/neshaz/how-to-use-git-merge-the-correctway-25pd</ref>
* [[Move existing, uncommitted work to a new branch in git]]
 
  
 
== Tips and Tricks ==
 
== Tips and Tricks ==
Line 71: Line 69:
 
== Security ==
 
== Security ==
 
* [[CVE-2022-24765]] windows and multi-user environments
 
* [[CVE-2022-24765]] windows and multi-user environments
* [[gitrob]], [[TruffleHog]], [[gitleaks]]
 
  
 
== Related terms ==
 
== Related terms ==
Line 81: Line 78:
 
* <code>[[git stash]]</code>
 
* <code>[[git stash]]</code>
 
* [[GitBook]]
 
* [[GitBook]]
* <code>[[diffuse -m]]</code>
 
  
 
== Related software ==
 
== Related software ==
Line 94: Line 90:
 
# Read StackOverflow questions about Git: https://stackoverflow.com/questions/tagged/git?tab=Votes
 
# Read StackOverflow questions about Git: https://stackoverflow.com/questions/tagged/git?tab=Votes
 
# [[Make Local Changes and Update remote Repositories]]
 
# [[Make Local Changes and Update remote Repositories]]
# [[Create Git branch with current changes]]
 
  
 
== See also ==
 
== See also ==
Line 101: Line 96:
 
* {{VCS}}
 
* {{VCS}}
 
* {{dev}}
 
* {{dev}}
 
+
* [[gitrob]], [[TruffleHog]], [[gitleaks]]
  
  

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: