Skip to content

Instantly share code, notes, and snippets.

View purveshmakode24's full-sized avatar
👨‍💻
Break & Build

Purvesh Makode purveshmakode24

👨‍💻
Break & Build
  • Akamai
  • India
View GitHub Profile

packages/protocols used to make API calls/HTTP requests from different platforms

1) Django:

2) React/Vue/Angular:

  • Axios
  • Fetch API [defined in your window object/browser (don't need to install it separately)]
@purveshmakode24
purveshmakode24 / gitcommands.md
Last active May 28, 2020 20:14
Some Important Git Commands Need to Remember.

Important Git commands to remember

1. To discard changes in working directory:

git checkout -- <file_name>

2. git add

Adds files in the to the staging area for Git. Before a file is available to commit to a repository, the file needs to be added to the Git index (staging area). There are a few different ways to use git add, by adding entire directories, specific files, or all unstaged files.

Usage:

@purveshmakode24
purveshmakode24 / forkUpToDate.md
Last active October 7, 2020 08:52
General instruction: Keeping fork upto date

Keep Your fork Upto Date.

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo

git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git