git clone <url>
git config --global user.name "Name"
git config --global user.email [email protected]
TODO
Replace part of the .git/config
by the following (Remove the need to enter the username and password each time for github) :
# GitHub
[remote "origin"]
url = https://github.com/<github_username>/<github_repo_name>.git
# GitLab
[remote "origin"]
url = https://<remote_git_username>:<remote_git_password>@<git_server_ip>/<group_name>/<git_repo_name>.git
And do :
chmod 700 .git/config