From time to time, my favorite git client like Sourcetree crashes, or hangs. I bet it’s because of lots of files being processed. Lately I turned into git command again. So it’s a good idea for me to keep track in blogging out some useful git commands discovered along the way of doing the project.
git add -A
git commit -m ‘First line
(end the lines with single quote ‘)
3. When we need to force update by ignoring non-fast-forward check. Thus this wipe out history in tree. ie. we amend commit, then do a push, thus a problem occurs.
git push origin +master
(prefix branch with +)
The multiple lines commit in no.2 seems to have a problem when I tried to include symbol such as parenthesis, and sometimes it’s error. So use double quote instead. It works.