Skip to content

Commit 9a09d30

Browse files
committed
Add back README.md
1 parent 557af20 commit 9a09d30

File tree

3 files changed

+34
-97
lines changed

3 files changed

+34
-97
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# README.md
2+
3+
This GitHub repository contains files referenced by Wilson Mar's
4+
Git and GitHub course.
5+
6+
File names ending in <strong>.ps1</strong> are PowerShell scripts that run on Windows,
7+
but now also Mac and Linux machines after installing Microsoft's PowerShell.
8+
9+
File names ending in <strong>.sh</strong> are Bash scripts that normally run on Mac,
10+
and now also on Anniversary Edition Windows 10 machines.
11+
Such scripts are being phased out in favor of a PowerShell script for use by all.
12+
13+
Learners make use of two sets of scripts that issue <strong>git commands</strong>
14+
so you can experiment to see what happens when you make a change to commands.
15+
16+
<strong>git-sisters-update.ps1</strong> is a PowerShell script that
17+
clones a sample sample repository you forked on GitHub.
18+
It calls a script that sets git configurations for a project (or globally)<br />
19+
<strong>git_client-config.ps1</strong>
20+
21+
<strong>git-sample-repo-create.ps1</strong> is a PowerShell script that
22+
creates a repository on your local clones your fork of a sample sample repository.
23+
24+
All these scripts create a folder, but that folder is deleted at the beginning of each run.
25+
26+
Enjoy!

git_client-config.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ git config $GIT_GLOBAL diff.mnemonicprefix true
7575
git config $GIT_GLOBAL rerere.enabled false
7676
# See https://chuva-inc.com/blog/fast-tip-enable-git-rerere-right-now
7777

78+
# Disable “how to stage/unstage/add” hints given by git status:
79+
git config $GIT_GLOBAL advice.statusHints false
80+
81+
# Allow git diff to do basic rename and copy detection:
82+
git config $GIT_GLOBAL diff.renames copies
83+
84+
#Always show a diffstat at the end of a merge:
85+
git config $GIT_GLOBAL merge.stat true
7886

7987
# git config $GIT_GLOBAL --list # Dump config $GIT_GLOBAL file
8088

test1.ps1

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)