Skip to content

Instantly share code, notes, and snippets.

View kzelda's full-sized avatar
😄
الحمد لله

kzelda

😄
الحمد لله
View GitHub Profile
@kzelda
kzelda / gitcom.md
Created April 2, 2020 12:15 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@kzelda
kzelda / git_cheat-sheet.md
Created April 2, 2020 12:14 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@kzelda
kzelda / README.md
Created April 2, 2020 12:09 — forked from hofmannsven/README.md
Git Cheatsheet
@kzelda
kzelda / git-cheat-sheet.md
Created April 2, 2020 11:36 — forked from prograhammer/git-cheat-sheet.md
Git cheat sheet for some useful Git commands and command scenarios.
@kzelda
kzelda / git-change-commit-messages.md
Created March 23, 2020 08:16 — forked from nepsilon/git-change-commit-messages.md
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@kzelda
kzelda / how-to-add-image-to-gist.md
Created March 18, 2020 09:18 — forked from mroderick/how-to-add-image-to-gist.md
How to add an image to a gist

How to add an image to a gist

  1. Create a gist if you haven't already.
  2. Clone your gist:
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone [email protected]:<hash>.git     # or with ssh
@kzelda
kzelda / gist:63b30a9575dd90d3a478c6d80be548c1
Created January 27, 2020 08:37
Visual Studio 2019 Product Key
Visual Studio 2019 Enterprise
BF8Y8-GN2QH-T84XB-QVY3B-RC4DF
Visual Studio 2019 Professional
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
@kzelda
kzelda / cheatsheet-git.sh
Created October 20, 2019 13:49 — forked from raineorshine/cheatsheet-git.sh
Cheatsheet: git commands
# adding and committing
git add -A # stages All
git add . # stages new and modified, without deleted
git add -u # stages modified and deleted, without new
git commit --amend # Add staged changes to previous commit. Do not use if commit has been pushed.
git commit --amend --no-edit # Do so without having to edit the commit message.
# remotes - pushing, pulling, and tracking
git fetch # gets remote objects and refs. Needed if new branches were added on the remote.
git remote -v # Lists all remotes (verbose)
@kzelda
kzelda / gist:febc2baf6636ec19e5aa3451073f353b
Created October 16, 2019 08:48
NPM commands cheat sheet

Npm has a lot of commands, lets make a cheat sheet!

Community Features

  • adduser (alias: add-user | login)

    Create or Login into the npm server.

npm adduser