Upload second update

Let us suppose we have changed and updated our file. We need to push these modified files to the remote repository.
[ Example change the content of the 1.txt ]

To check the modified files

$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
        modified:   1.txt
no changes added to commit (use "git add" and/or "git commit -a")

Since you already entered a remote repository, now there is no need to enter it again.

Adding files to upload

$ git add .

Comiting upload

$ git commit -m "Second update"
[master ab3bd2f] Second update
 1 file changed, 1 insertion(+), 1 deletion(-)

Pushing files to reposiroty

$ git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 299 bytes | 99.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://bitbucket.org/aj3sh/myrepository.git
   6b5deff..ab3bd2f  master -> master




You must login to comment

No comment yet


  • Online: 1
    Registered users: 7
    Unique visitors: 166
    Total hits: 483