rodrigosantosbr

[git] push existing folder to gitlab

Jul 27th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

- Git global setup

git config --global user.name "My Name"
git config --global user.email "[email protected]"

- Push an existing folder

cd <project-folder>
git init
git remote add origin <git_repo-url>
git add .
git commit -m "Initial commit"
git push -u origin master
Add Comment
Please, Sign In to add comment