LogIn
I don't have account.

Git Command to push changes on remote repository ( Github)

DevSniper
130 Views

Steps to push chanegs on remote repository ( Github)

Stage Changes

Commit Changes

Push Changes

Stage Changes

git add command used to stage the changes.

git add <file1> <file2> ...

to stage all changes

git add .
Commit Changes
git commit command is used to commit the staged changes to your local repository. You should provide a meaningful commit message for your commit.
git commit -m "your commit message"
Push Changes
git push command used to push your commits to the remote repository (GitHub). you might need to provide remote repository and branch if it is not set as the default upstream.
git push <remote> <branch>

Summary

# Staging all changes
git add .

# Commiting changes with commit message
git commit -m "adding auth feature"

# Pushing changes to the remote repository
git push origin main