×
          
              
          
      
      Clear all filters including search bar
          
        Valeri Tandilashvili's Personal Professional Blog
      
    git pushgit remote -v$ git remote add origin https://github.com/tandilashvili/testproject.gitgit remote set-url origin https://github.com/tandilashvili/testrepo.gitcd /Users/Brad/Desktop/SitesInstead of typing the full path we can drag the folder on top of our command linepwdalso works on windowsgit config --global user.name "John"
git config --global user.email "johndoe@gmail.com"git config --global user.name
git config --global user.emailgit config user.name "John"
git config user.email "johndoe@gmail.com"git config user.name
git config user.emailgit commit -m 'Initial commit'git commit -a -m 'Initial commit'  /  git commit -am 'Initial commit'git commit --amend -m 'Initial commit'git checkout -- .some.txtgit checkout -- some.txtgit checkout mastergit checkout b4ba3088679ff70b45df2aefc7c0a13d41a2bd76git checkout b4ba3088679ff70b45df2aefc7c0a13d41a2bd76 .some.txtgit checkout b4ba3088679ff70b45df2aefc7c0a13d41a2bd76 some.txtgit checkout another_branchgit checkout -b new_brancha.txtecho 'some txt' > a.txta.txtecho 'some txt' >> a.txtalso works on windowsa.txttouch a.txttouch .gitignore a.txt b.txtdoes not work on windowsgit resetHEADgit reset  /  git reset HEAD  /  git reset HEAD .git reset HEAD 1.txtgit reset --soft i4ol54fgit reset i4ol54f  /  git reset --mixed i4ol54fgit reset --hard 004caa3git reset --hard HEAD~3git reset--mixed