Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
student:utilities:git [2024/04/23 09:29] – [Global Configuration] stewarmcstudent:utilities:git [2024/10/21 11:18] (current) – [Git] kim3ey
Line 1: Line 1:
 +====== Git ======
 [[https://git-scm.com/|Git]] is a powerful, distributed version control system. Consider installing it as specified on the linked site. [[https://git-scm.com/|Git]] is a powerful, distributed version control system. Consider installing it as specified on the linked site.
  
Line 12: Line 13:
 </code> </code>
  
-You can also open the file ''$USER/.gitconfig'' and edit it to match the formatting below.+You can also open the file ''~/.gitconfig'' and edit it to match the formatting below.
  
-====== Global Configuration ======+===== Global Configuration =====
  
 <code> <code>
Line 25: Line 26:
 [core] [core]
  excludesfile = /usuallyThePathToYourUserHomeDirectory/.gitignore_global  excludesfile = /usuallyThePathToYourUserHomeDirectory/.gitignore_global
- editor = code --wait # this will use vscode as the default editor. it assumes that you have the code command installed and in your PATH. Note: because of the --wait option, you will need to close the editor tab that git opens before the git task will complete (e.g. if you commit without a message, vscode will open an editor tab in which you should type a commit message, then if you save that "file" and close the tab, git will know that you're done and will proceed with the commit now with its message updated)+ editor = code --wait  # this will use vscode as the default editor.  
 +it assumes that you have the code command installed  
 +and in your PATH. Note: because of the --wait option, 
 +you will need to close the editor tab that git opens 
 +before the git task will complete (e.g. if you commit 
 +without a message, vscode will open an editor tab in 
 +which you should type a commit message, then if you 
 +save that "file" and close the tab, git will know that 
 +you're done and will proceed with the commit now with 
 +its message updated)
 [init] [init]
  defaultBranch = main  defaultBranch = main