I am currently collaborating with a few others on a large Java project, and have cloned the repository to work on it from my home PC. I went ahead and changed 2 files within the whole directory/subdirectory structure of this gigantic project, and would like to just push those two files I’ve edited back into the repository.
Is there a command I can use in order to accomplish this? Thanks.
git pull origin master– make sure your master branch is up to date with the latest changes in the remote repository defined by origin (frequently github).git status– show files that you’ve modified in the branch you are in.git add. – add the files you’ve modified to your current branch.git commit– save changed files to your current branch.git push origin master– send the changed files in the master branch to the remote repository.