Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nshiva/a1168f898dd0faa52272e9c7eadb0670 to your computer and use it in GitHub Desktop.
Save nshiva/a1168f898dd0faa52272e9c7eadb0670 to your computer and use it in GitHub Desktop.

Revisions

  1. @vjnan369 vjnan369 revised this gist Jun 7, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,11 +4,11 @@

    ### clone a repository:

    HTTP:
    Using HTTP web url:

    git clone https://github.com/vjnan369/tokboxapp.git

    SSH:
    using SSH key:

    git clone [email protected]:vjnan369/tokboxapp.git

  2. @vjnan369 vjnan369 revised this gist Jun 7, 2017. 1 changed file with 51 additions and 0 deletions.
    51 changes: 51 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,58 @@ remove remote path
    add file to git

    git add . //will add all untracked files to git

    commit code

    git commit -m "commit text here"

    push code

    git push upstream master

    pull code

    git pull upstream master

    create a new branch

    git checkout -b shiva_dev

    stash the changes

    git stash

    get stashed data

    git stash apply

    check git status

    git status

    check changes in git

    git diff

    switch branch

    git checkout mahesh_dev

    merge other branch code into current branch

    git merge shiva_dev

    look stash list

    git stash list

    look latest stash changes

    git stash show -p

    look specific stash changes

    git stash show -p stash@{5}



  3. @vjnan369 vjnan369 revised this gist Jun 7, 2017. 1 changed file with 18 additions and 1 deletion.
    19 changes: 18 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,24 @@ git clone https://github.com/vjnan369/tokboxapp.git

    SSH:

    git clone [email protected]:vjnan369/tokboxapp.git
    git clone [email protected]:vjnan369/tokboxapp.git

    add new remote

    git remote add upstream [email protected]:vjnan369/tokboxapp.git

    check remote path

    git remote -v

    remove remote path

    git remote rm upstream

    add file to git

    git add . //will add all untracked files to git




  4. @vjnan369 vjnan369 revised this gist Jun 7, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,11 @@
    ### clone a repository:

    HTTP:

    git clone https://github.com/vjnan369/tokboxapp.git

    SSH:

    git clone [email protected]:vjnan369/tokboxapp.git


  5. @vjnan369 vjnan369 revised this gist Jun 7, 2017. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,3 +2,12 @@

    ## It is a version control system which can track changes in files and coordinating work on those files among multiple people

    ### clone a repository:

    HTTP:
    git clone https://github.com/vjnan369/tokboxapp.git
    SSH:
    git clone [email protected]:vjnan369/tokboxapp.git



  6. @vjnan369 vjnan369 revised this gist Jun 7, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # What is GIT

    ## This is git
    ## It is a version control system which can track changes in files and coordinating work on those files among multiple people

  7. @vjnan369 vjnan369 revised this gist Jun 7, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    # What is GIT
    # What is GIT

    ## This is git
  8. @vjnan369 vjnan369 renamed this gist Apr 2, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  9. @vjnan369 vjnan369 created this gist Apr 2, 2017.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    # What is GIT