Work with a sample github project
# git --version
git version 1.7.11.3
# git config --global user.name myusername
# env GIT_SSL_NO_VERIFY=true git clone https://github.company.net/myusername/Hello-World.git
Cloning into 'Hello-World'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (3/3), done.
# git remote -v
origin https://github.company.net/myusername/Hello-World (fetch)
origin https://github.company.net/myusername/Hello-World (push)
git version 1.7.11.3
# git config --global user.name myusername
# env GIT_SSL_NO_VERIFY=true git clone https://github.company.net/myusername/Hello-World.git
Cloning into 'Hello-World'...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (3/3), done.
# git remote -v
origin https://github.company.net/myusername/Hello-World (fetch)
origin https://github.company.net/myusername/Hello-World (push)
#touch readme.md
#touch package.json
#git add .
#git commit
Install company security certificate is you have
# sudo git config --system http.sslcainfo ~centos/Downloads/decoded.crt
If you don't have company security certificate add env GIT_SSL_NO_VERIFY=true before git command
# git push -u origin master
Counting objects: 8, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 2.20 MiB | 625 KiB/s, done.
Total 5 (delta 2), reused 0 (delta 0)
To https://github.company.net/myusername/Hello-World
1e019b3..42cbab1 master -> master
Branch master set up to track remote branch master from origin.
Enter username password to authenticate
#touch package.json
#git add .
#git commit
Install company security certificate is you have
# sudo git config --system http.sslcainfo ~centos/Downloads/decoded.crt
If you don't have company security certificate add env GIT_SSL_NO_VERIFY=true before git command
# git push -u origin master
Counting objects: 8, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 2.20 MiB | 625 KiB/s, done.
Total 5 (delta 2), reused 0 (delta 0)
To https://github.company.net/myusername/Hello-World
1e019b3..42cbab1 master -> master
Branch master set up to track remote branch master from origin.
Enter username password to authenticate
No comments:
Post a Comment