Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Github: How to add files to git repository via command line

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 560
    Comment on it

    This blog will help you to understand how to add files to your git repository:

    Step 1: Move the files into local directory which you want to upload to Github that was created when you cloned the repository.

    Step 2: Open and change the current working directory to your local repository.

    Step 3: Stage the file for the first commit to your repository.

    $ git add filename

    filename is the name that you want to add to the the git repository.

    Step 4: Commit the files that you have staged into local repository

    $ git commit -m "Your first commit statement"

    Step 5: Now push the changes to Github from local repository.

    $ git push origin master

    All done!

    Thanks for reading the blog

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: