Skip to content

ashishjain14/Cool-Hacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Cool-Hacks

Some cool hacks

  • If you somehow make an accidental commit instead of amend to an existing commit use the following
    git reset --soft @~ && git commit --amend --no-edit && git push -f
    
  • For git merge conflicts refer
    https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging#Basic-Merge-Conflicts
    
  • Syncing your fork with upstream
    git remote add upstream <URL_OF_YOUR_UPSTREAM_REPO>
    git fetch upstream
    git checkout master
    git merge upstream/master
    git push origin master
    
  • Run vscode from a terminal in Mac Add the following in .bash_profile
    code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
    
    and now you can run code, code . etc

About

Some cool hacks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages