1. Java project must be provided.
2. Create local repository
go to project root directory and execute
$ git init
3. Create .gitignore file in project root directory (www.gitignore.io)
4. Add files to local repo using the following command
$ git add
5. Commit changes into local repo
$ git commit -m 'message'
6. Create Remote repo (like github.com or bitbucket.org)
7. Add origin to remote repo
$ git remote add origin repo-url
8. Push local repo main branch to remote server
$ git push -u origin --all
9. push local repo tags to remote server
$ git push -u origin --tags
No comments:
Post a Comment