Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
student:utilities:git [2024/04/23 09:25] – add info about setting these options stewarmc | student:utilities:git [2024/10/21 11:18] (current) – [Git] kim3ey | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Git ====== | ||
[[https:// | [[https:// | ||
Line 12: | Line 13: | ||
</ | </ | ||
- | You can also open the file '' | + | You can also open the file '' |
- | ====== Global Configuration | + | ===== Global Configuration ===== |
< | < | ||
Line 23: | Line 24: | ||
[color] | [color] | ||
ui = true | ui = true | ||
+ | [core] | ||
+ | excludesfile = / | ||
+ | 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 " | ||
+ | # you're done and will proceed with the commit now with | ||
+ | # its message updated) | ||
[init] | [init] | ||
defaultBranch = main | defaultBranch = main |