Git

Push files to github with Personal access tokens

Naranjito 2022. 6. 15. 14:48

1. Define the configuration and git add.

git config user.name naranja0047
git config user.email naranja@illunex.com

git add .

 

2. Make ignore file and put any files I do not want to push to git.

vi .gitignore

>>>

data

 

3. git init

 

4. git add

 

5. git commit -m "first commit"

 

6. git remote  add origin 

Format example : https://naranja0047:PERSONAL_ACCESS_TOCKEN@github.com/illunex/ABCfood_recommendation.git

 

7. git push origin master

 

tips

- Check occasionally the status, configure.

git status

git config --list

git config

git remote remove origin