I joined a new team recently. My machine was already setup with the local server. and also there's a copy of the codes that I can run in my local (browser). When I did a
git branch -a
I saw a list of all the repositories. and my copy of the codes were checked out from a branch-staging. it means, it's like a clean copy. Now that I'm almost about to finish my own codes, I want my codes to be inside my own branch, and when I commit and push, it should land in my own remote branch. Can you help check if these are correct?
1)
git branch -a myname
2) is my step two correct?, or should it be git push origin myname
?
git push myname myname
3) if the step two is correct, the next thing is to add my new file codes?
git add file.php
4) before even going to do the step one, when I ran git status
,I already saw a lot of modified files and untracked files even if I didn't even touched those things. Now my question is, in my new own branch, will they exist also?, I wonder how troublesome this is, there's a lot of modified files that I never touched at all, I only want to commit and push my own files in my own branch. so how?