Skip to content
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://tokenCode@github.com/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.