
- Git - خانه
- Git - مفاهیم پایه
- Git - نصب و تنظیمات محیط
- Git - چرخه زندگی
- Git - درست عملیات
- Git - عملیات کلون
- Git - انجام تغییرات
- Git - نقد و بررسی تغییرات
- Git - Commit ایجاد تغییر در
- Git - Push عملیات
- Git - عملیات بهروزرسانیn
- Git - Stash عملیات
- Git - Move عملیات
- Git - عملیات تغییر نام دادن
- Git - Delete عملیات
- Git - رفع اشتباهات
- Git - Tag عملیات
- Git - Patch عملیات
- Git - مدیریت Branch ها
- Git - سیستم های انتقال مواد درگیری
- Git - های مختلف Platform
- Git - انبارهای برخط
Git -
git hub web-based git . GUI platform github . CLI .
GitHub
github.com. I. account account
Push
Tom github . directory
[tom@CentOS]$ mkdir github_repo [tom@CentOS]$ cd github_repo/ [tom@CentOS]$ vi hello.c [tom@CentOS]$ make hello cc hello.c -o hello [tom@CentOS]$ ./hello
:
Hello, World !!!
directory git init commit
[tom@CentOS]$ git init Initialized empty Git repository in /home/tom/github_repo/.git/ [tom@CentOS]$ git status -s ?? hello ?? hello.c [tom@CentOS]$ git add hello.c [tom@CentOS]$ git status -s A hello.c ?? hello [tom@CentOS]$ git commit -m 'Initial commit'
github URL remote origin push :
[tom@CentOS]$ git remote add origin https://github.com/kangralkar/testing_repo.git [tom@CentOS]$ git push -u origin master
Push github . push
:
Username for 'https://github.com': kangralkar Password for 'https://kangralkar@github.com': Counting objects: 3, done. Writing objects: 100% (3/3), 214 bytes, done. Total 3 (delta 0), reused 0 (delta 0) To https://github.com/kangralkar/test_repo.git * [new branch] master −> master Branch master set up to track remote branch master from origin.
Tom Push, GitHub . GitHub
Pull
Tom GitHub push . clone update
Jerry directory GitHub clone, git clone :
[jerry@CentOS]$ pwd /home/jerry [jerry@CentOS]$ mkdir jerry_repo [jerry@CentOS]$ git clone https://github.com/kangralkar/test_repo.git
:
Cloning into 'test_repo'... remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 3 (delta 0) Unpacking objects: 100% (3/3), done.
[jerry@CentOS]$ ls test_repo [jerry@CentOS]$ ls test_repo/ hello.c
Advertisements