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
'Git' 카테고리의 다른 글
When git doesn't push at last step(Could not read from remote repository) (0) | 2024.01.17 |
---|---|
Add my code to my teammate's code using git branch (0) | 2022.07.12 |
git error : src refspec master does not match any (0) | 2022.06.15 |
git error : Permission denied (publickey) (0) | 2022.04.06 |
git error : Updates were rejected because the tip of your current branch is behind (0) | 2021.11.18 |