On 16/08/18 21:56, Lars Noodén wrote:

> git commit -a

Better to add a commit message so you know what you were thinking about
at the time:

git commit -a -m "My new funky feature I dreamt up whilst on the beer
last night"

This will add all 'untracked' files and commit them.

You can do it individually:

Add a files(s) to the repo:

git add somefile.txt

Commit that file

git commit -m "A new file" somefile.txt

(note you have to use git add if you don't use git commit -a)

You can use wildcards with git add for multiple files/directories

You can also do a few bits like this:

To see your local changes:

git diff

To see your repo status:

git status

Have a hunt on the interwebs for a git cheatsheet and keep it to hand.

I am no guru but these were the most important bits to get me going.

It gets much trickier when you start messing with branches and
merges......   :-(

HTH

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to