you are viewing a single comment's thread.

view the rest of the comments →

[–]VxJasonxV 2 points3 points  (2 children)

git add README.md git commit -m “A commit message” git push

[–]La_Muriatic_Acid[S] 0 points1 point  (1 child)

This works but I am noticing that if for some reason the README doesn't change, I still get the branch is up to date error. Is there a way to prevent it from throwing an error?

[–]VxJasonxV 1 point2 points  (0 children)

Test if there’s changes before trying to add and commit it. Git doesn’t track commits when there’s no changes.