HostOnNet Blog

Git

Looking for Linux Server Admin or WordPress Expert? We can help.

On a web server, i had to change file permission to 755 to make site work. Now when i try to get latest code from git, git pull fail with file change error.

To ignore file permission in git, run

git config core.filemode false

Git Set User

To set user name and email, run

git config user.name "Your Name"
git config user.email "[email protected]"

GitHub Clone

* https://about.gitlab.com/ (written in ruby)
* https://gogs.io/ (written in golang)

  1. GIT Disable accidental commit on master branch
  2. Better git log
  3. GIT fatal: Unable to find remote helper for ‘https’
  4. Install git from source
  5. git diff – list changed files between 2 commits
  6. Show Git Branch in Command Prompt

Posted in Git

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.