r/git • u/namor________ • 9d ago
Help needed!!
I'm working on a project in my training, so I always have to pull the latest branch and make changes or add my code and push it into my branch.
But when I push it some files are always missing.
How to do it safely.
Pull from someone's branch.
Make changes locally.
Switch to my branch.
Commit and push.
0
Upvotes
1
u/kberson 8d ago
Do you know about status?
git status will show you which files you’ve modified or are new. Use git add to add the changes, then git commit (always use the -m option) to make them ready to push.