DEV Community

Khoa Pham
Khoa Pham

Posted on • Edited on

7 1

Pushing to gist

Creating a new gist

  • Go to https://gist.github.com/ and create a new gist
  • Note that you need to include filename + extension to enable automatic language markup
  • Click Add file to add more files

Cloning the gist

  • If you've enabled 2 factor authentication, you need to use personal acccess token with https, or use ssh.

If you have enabled two-factor authentication, or if you are accessing an organization that uses SAML single sign-on, you must provide a personal access token instead of entering your password for HTTPS Git.

git remote add origin git@gist.github.com:c486939f82fc4d3a8ed4be21538fdd32.git
git clone
Enter fullscreen mode Exit fullscreen mode
  • You have branch master by default
git push origin master
Enter fullscreen mode Exit fullscreen mode

Ignoring directories

remote: Gist does not support directories.

  • In my cases I'm using node, so I need to ignore node_modules directory
  • Also need to untrack if necessary
git rm --cached -r .
git add .
Enter fullscreen mode Exit fullscreen mode

❤️ Support my app ❤️

❤️❤️😇😍🤘❤️❤️

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay