how to push code to github from vscodeshell by Determined Dugong on Aug 14 2021 Comment 8 1 git init // start tracking current directory Save 2 git add -A // add all files in current directory to staging area, making them available for commit Save 3 git commit -m "commit message" // commit your changes Save 4 git remote add origin https://github.com/username/repo-name.git // add remote repository URL which contains the required details Save 5 git pull origin master // always pull from remote before pushing Save 6 git push -u origin master // publish changes to your remote repository
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter