0

Although I have made changes to the folder of the repository I cloned, somewhy I cannot commit..

NiHao92
  • 379
  • 1
  • 3
  • 16
  • 1
    Sounds like you haven't staged your changes. In Git, you stage changes first, then commit your staged changes. Many Git tools let you just commit all changes without staging first, but they're just staging it behind the scenes for you. Sounds like Gitcola doesn't do that. – Lily Ballard Sep 11 '17 at 18:34
  • 1
    Did you perform 'git add' on changed files? – shivaji bhosale Sep 11 '17 at 18:59
  • It's time to read at least a (very) short tutorial about git... – Philippe Sep 11 '17 at 19:20

2 Answers2

1

Basics of committing:

git status - shows you the status of the repo, including unstaged files.

git add <filename> stages that file.

git add --all stages all files.

git commit starts a commit.

git commit -m "message" is a one-liner for a commit

git commit -a commits all files

git push <remote> <branch> pushes a branch and its commits to a remote refspec, e.g. git push origin master

cuuupid
  • 912
  • 5
  • 20
0

Does it say 'no changes added to commit'?

If that's the case, you have to manually add the files that you want to commit first. Use:

git add <filename>

Where filename is the file where you made your changes. For example:

git add aFolder/source/file.txt

Then you'll be able to commit.

GiovanyMoreno
  • 389
  • 3
  • 13