Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
problem
cannot check in only file i created or modified on source control git ?
Hi i work on angular 7 project work on source control every time i finish my work
i do git push origon master
it push to all files on project
i need only to push to specific files i modify or created
Are this possible on git source control ?

What I have tried:

git push origon master
Posted
Updated 28-Dec-19 19:24pm

1 solution

For the command line:
git status: shows all modified files.
git add <filepath>: adds the specified file to staging.
git add .: adds all modified files to staging.
git commit: commits all staged files to the local repo.
git commit -a: equivalent to git add . | git commit
git push origin <branchname>: push all commited changes to the branch on the local repo to the remote repo (origin).

I highly recommend looking over the documentation here[^]. It covers anything you could want to know about git and there are also cheat sheet links for quick reference.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900