To add all the changes you’ve made:
git add .
To commit them:
git commit -m "MY MESSAGE HERE"
#-m is the message flag
You can put those steps together like this:
git commit -a -m "MY MESSAGE HERE"
To push your committed changes from your local repository to your remote repository:
git push origin master
You might have to type in your username/password for github after this. Here’s a good primer on using git. A bit old, but it covers what’s going on really well.
Related Posts:
- git – Your branch is ahead of ‘origin/master’ by 1 commit
- How to add multiple files to Git at the same time
- git – Your branch is ahead of ‘origin/master’ by 1 commit
- How can I push a specific commit to a remote, and not previous commits?
- What does ‘–set-upstream’ do?
- What does ‘–set-upstream’ do?
- How do I properly force a Git push?
- How to revert multiple git commits?
- How to revert multiple git commits?
- rejected master -> master (non-fast-forward)
- rejected master -> master (non-fast-forward)
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- Git Giving “fetch first” error when trying to push
- Set up git to pull and push all branches
- git push to specific branch
- Why does Git tell me “No such remote ‘origin'” when I try to push to origin?
- Updates were rejected because the remote contains work that you do not have locally
- What are the differences between “git commit” and “git push”?
- git add only modified changes and ignore untracked files
- git push not send changes to remote git repository
- Git Push Error: insufficient permission for adding an object to repository database
- What is git tag, How to create tags & How to checkout git remote tag(s)
- Difference between “git add -A” and “git add .”
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- What is the best (and safest) way to merge a Git branch into master?
- Squash my last X commits together using Git
- How to apply a patch generated with git format-patch?
- Abort a Git Merge
- How to delete a remote tag?
- Updates were rejected because the tip of your current branch is behind its remote counterpart
- What does “Changes not staged for commit” mean
- git: fatal: Could not read from remote repository
- How do I update Homebrew?
- Git error when trying to push — pre-receive hook declined
- Gitignore not working
- Could not open a connection to your authentication agent
- How to get just one file from another branch?
- git checkout a single file from another branch and put in different folder
- Update Git branches from master
- Stash only one file out of multiple files that have changed with Git?
- Git, fatal: The remote end hung up unexpectedly
- Create a branch in Git from another branch
- What is HEAD in Git?
- Why git asks to enter a commit message to explain why this merge is necessary
- What are the differences between git remote prune, git prune, git fetch –prune, etc
- How to get the current branch name in Git?
- How do I remove version tracking from a project cloned from git?
- How can I git stash a specific file?
- How to name and retrieve a stash by name in git?
- Get a list of all git commits, including the ‘lost’ ones
- Stash just a single file
- git pull on a different branch
- Stash just a single file
- Git – Ignore node_modules folder everywhere
- How to pull from one remote branch to another branch in git?
- Trying to git pull with error: cannot open .git/FETCH_HEAD: Permission denied
- Git: cannot do a partial commit during a merge (SourceTree)
- How to undo ‘git reset’?
- fatal: Not a valid object name: ‘master’
- Git and nasty “error: cannot lock existing info/refs fatal”
- How do I delete a local repository in git?
- Throw away local commits in Git
- Hard reset of a single file
- How to remove remote origin from a Git repository
- .gitignore and “The following untracked working tree files would be overwritten by checkout”
- Delete all local git branches
- Why does ‘git commit’ not save my changes?
- Connecting to Git team provider failed
- Heroku: How to change a Git remote on Heroku
- Undoing a ‘git push’
- What’s the significance of the “No newline at end of file” log?
- Git update submodules recursively
- Do a “git export” (like “svn export”)?
- What does git push origin HEAD mean?
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- git push origin master does not work
- git push –force-with-lease vs. –force
- Git clone verbose output?
- Could not create work tree dir ‘example.com’.: Permission denied
- How to answer the git prompt in npm init for a local repo
- Git says “Automatic merge failed”, what does it mean?
- How to configure git bash command line completion?
- How to stop tracking and ignore changes to a file in Git?
- Does running git init twice initialize a repository or reinitialize an existing repo?
- Eclipse EGit Checkout conflict with files: – EGit doesn’t want to continue
- WordPress with Git
- WordPress and Git – What folders should I track?
- Is it better to create a Git repository at the root level or in the WordPress theme directory?
- Pull latest stable release via git [closed]
- Why do the Roots theme CSS files not load (404)?
- How do i define the location of a git push to WP Engine
- Preload Cache for thousands of posts may be on non-production environment
- Painless way to track remote Git repo for WordPress updates
- WordPress on git – need help with configuration
- Post via git repository
- Can anyone see a syntax error in this? [closed]
- WordPress and Git: How does Git interact with your IDE? [closed]
- How to update WordPress plugins properly using git?
- How to retrieve the last modification date of all files in a Git repository