Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

Git - Commit Your Code

Viewed:  1391 
Posted On:  30/09/2019 10:36:36 
How we can commit our code in remote repository from our local repository using git? 


In this article, I am going to show, how you can push your all code into a code repository.

Go to the local code repository and in address bar execute cmd.exe

Command window will open. Now execute below code

        > git init

>  it add .

> git commit -am "Add your app"

> git remote add origin <git Repo Url>

> git push -u origin -all


It will push all your code into your git repository.

Commit your changes

> git commit -m "Made Changes"

Push your changes to GitHub

$ git push origin BranchName


         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us