-
Notifications
You must be signed in to change notification settings - Fork 0
Git
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update
sudo apt-get install git -y
If your system doesn't have add-apt-repository, you can install it via:
sudo apt-get install python-software-properties software-properties-common
If you use Https to communicate with your git repository, Es, Github or VisualStudioOnline, you usually setup credential manager to avoid entering credential for each command that contact the server. With latest versions of git you can configure wincred with this simple command.
git config --global credential.helper wincred
If you use wincred for credential.helper, git is storing your credentials in standard windows Credential Manager
git checkout .
https://makandracards.com/makandra/42698-git-see-more-context-in-a-diff
Using the -U parameter you can change how many lines are shown above and below a changed section.
E.g. git diff -U10
will show 10 lines above and below.