Open OleksiyRudenko opened 5 years ago
Run the following commands:
sudo apt-get install libsecret-1-0 libsecret-1-dev
cd /usr/share/doc/git/contrib/credential/libsecret
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
If any command fails try googling the error message to fix the issue.
Alternatively, you my try Git Credential Manager from Microsoft
By default git uses vi
or vim
to edit commit messages, manage interactive rebasing etc. You may find those not friendly enough. Check [this] out to know how to set up alternatives.
Recommended alternative editors follow.
It is not recommended to use Notepad.exe
that comes bundled along with Windows as it may not treat line endings properly, which may result in numerous warnings from git and bring some mess in your commits.
Recommended: Notepad++
nano - a better CLI text editor
sudo apt-get install nano
git config --global core.editor "nano"
VSC - a full-fledged IDE, yet lightweight enough to start fast.
Under MacOS you may need to move unpacked VSC bundle to Applications
for the following command to have a positive effect. Detailed instructions.
The code below must be a single line of text:
git config --global core.editor "/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code --wait"
Under other Linux systems you may need to find and change code
executable location appropriately.
Note the --wait
param, which may be required to help git properly handle an editing session by many GUI editors. Just in case you want to use anything different, e.g. Sublime. Consult editors documentation for integrating the edit of your choice with git, or just google EDITOR-NAME integration with git
.
GNU emacs is a good choice among x-platform GUI editors.
This module is expected to be completed before workshop. Please, get prepared properly to save your and your team mates time during workshop.
You will perform this setup once per device benefiting from this all the time further.
To be well prepared you have:
git config --global user.name|email
). See how.~/
under Linux/MacOS; runcmd.exe
and executeset HOME
to find the path)chmod u=rwx *.sh
to make scripts executable.gitignore
from the project above to your home directory./git-helper.sh
from the project above