Quick Actions
git push
Description
Upload local repository content to a remote repository.
Command
git push
Examples
Push to remote
git push origin main
Set upstream and push
git push --set-upstream origin feature-branch
Force push
git push --force origin main
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
<remote> |
string | No | Remote repository name |
<branch> |
string | No | Branch to push |
--force |
string | No | Force push (use with caution) |
--set-upstream |
string | No | Set upstream for tracking |
Command Info
Category:
Remote Operations
Type:
Git
Views:
7
Status:
Active
Tags
remote
upload
sync