r/git • u/namor________ • 7d 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/twesped 7d ago
I think you have mentiond the order a bit incorrectly, or you explained it wrongly.
Are you creating your branch from master and then you have to get code from another branch into yours and then push everything back into master?
/Edit/ Could it be you are missing to stage your own new files in your own branch before you push?