You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+24-7
Original file line number
Diff line number
Diff line change
@@ -123,11 +123,13 @@ All commands should work for at least git version 2.13.0. See the [git website](
123
123
-[I want to add command line coloring for Git](#i-want-to-add-command-line-coloring-for-git)
124
124
-[I've no idea what I did wrong](#ive-no-idea-what-i-did-wrong)
125
125
-[Git Shortcuts](#git-shortcuts)
126
-
-[Other Resources](#other-resources)
127
-
-[Books](#books)
128
-
-[Tutorials](#tutorials)
129
-
-[Scripts and Tools](#scripts-and-tools)
130
-
-[GUI Clients](#gui-clients)
126
+
-[Git Bash](#git-bash)
127
+
-[PowerShell on Windows](#powershell-on-windows)
128
+
-[Other Resources](#other-resources)
129
+
-[Books](#books)
130
+
-[Tutorials](#tutorials)
131
+
-[Scripts and Tools](#scripts-and-tools)
132
+
-[GUI Clients](#gui-clients)
131
133
132
134
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
133
135
@@ -1705,6 +1707,8 @@ Using `git reset` it is then possible to change master back to the commit it was
1705
1707
<a name="git-shortcuts"></a>
1706
1708
## Git Shortcuts
1707
1709
1710
+
### Git Bash
1711
+
1708
1712
Once you're comfortable with what the above commands are doing, you might want to create some shortcuts forGit Bash. This allows you to work a lot faster by doing complex tasksin really short commands.
1709
1713
1710
1714
```sh
@@ -1713,8 +1717,21 @@ alias sq=squash
1713
1717
functionsquash() {
1714
1718
git rebase -i HEAD~$1
1715
1719
}
1716
-
````
1717
-
copy those commands to your .bashrc or .bash_profile.
1720
+
```
1721
+
1722
+
Copy those commands to your .bashrc or .bash_profile.
1723
+
1724
+
### PowerShell on Windows
1725
+
1726
+
If you are using PowerShell on Windows, you can also set up aliases and functions. Add these commands to your profile, whose path is defined in the `$profile` variable. Learn more at the [About Profiles](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles) page on the Microsoft documentation site.
0 commit comments