/
Using git to update code

Using git to update code

  1. Insure the user has ssh access to the github repository.

  2. Configure git command line for this user:

    git config --list credential.helper=osxkeychain user.name=MikeTangoBravo user.email=MTB@costaflores.com
  3. Clone the repository

    git clone git@github.com:openvino/openvino-api.git Cloning into 'openvino-api'... Warning: Permanently added the RSA host key for IP address '44.0.0.1' to the list of known hosts. remote: Enumerating objects: 761, done. remote: Counting objects: 100% (233/233), done. remote: Compressing objects: 100% (169/169), done. remote: Total 761 (delta 99), reused 178 (delta 62), pack-reused 528 Receiving objects: 100% (761/761), 21.57 MiB | 11.52 MiB/s, done. Resolving deltas: 100% (360/360), done.
  4. Edit the files that need changing with vi.

    vi README.md
  5. Commit the changes.

    git commit -a -m "Change Enchainte for Bloock" [master 7f8855e] Change Enchainte for Bloock 1 file changed, 2 insertions(+), 2 deletions(-)
  6. Push the changes back to github

    git push origin Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 16 threads Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 322 bytes | 322.00 KiB/s, done. Total 3 (delta 2), reused 0 (delta 0) remote: Resolving deltas: 100% (2/2), completed with 2 local objects. To github.com:openvino/openvino-api.git 41e497c..7f8855e master -> master
  7.  

Related content