Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 21-clone-with-github-token.md #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions en/swears/tips/21-clone-with-github-token.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
tags: tip
title: Oh shit, I need to clone my repo with github token so I don't have to enter my username or password on every push or pull!
id: clone-with-github-token
order: 21
---

```git
# Generate your token in Github
# Store the token somewhere safe and it only show once.
Setting-> Developer settings->Personal access tokens

# How to use token when clone repo
git clone https://[email protected]/ksylor/ohshitgit.git
```

Also github now won't support password when you clone repo so if you don't want to setup ssh use this personal-access-token is good idea. also you can set timeout and permission to token so you can generate it for every envoirment.
It is very good technique for time saving. you don't need to remeber anything just use your push and pull without any hesitation.