FreeKB - Push a file from your local Git repository (branch) to the master Git repository (trunk)
Push a file from your local Git repository (branch) to the master Git repository (trunk)

Home > Search


If you are not familiar with Git, check out our getting started article. These examples are based on Linux. This also assumes that you have either added a new file in your local Git repository (branch) or you have updated a file in your local Git repository (branch), and you have also committed the updated file in your local Git repository (branch).

The git push command will push the file from your local Git repository (branch) to the master Git repository (trunk). In this example, foo.txt will be pushed to the master Git repository (trunk).

git push foo.txt

 

The -q or --quiet option can be used to suppress all output.

git push --quiet foo.txt

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter c3b6a in the box below so that we can be sure you are a human.




Comments