
- 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 -
Jerry clone string.c :
#include <stdio.h> int my_strlen(char *s) { char *p = s; while (*p) ++p; return (p - s); } int main(void) { int i; char *s[] = { "Git tutorials", "Tutorials Point" }; for (i = 0; i < 2; ++i) printf("string lenght of %s = %d\n", s[i], my_strlen(s[i])); return 0; }
compile .
git add staging area :
[jerry@CentOS project]$ git status -s ?? string ?? string.c [jerry@CentOS project]$ git add string.c
Git ?? Git Git
Jerry string.c stash area git status -s staging area :
[jerry@CentOS project]$ git status -s A string.c ?? string
commit commit -m . -m git commit :
[jerry@CentOS project]$ git commit -m 'Implemented my_strlen function'
[master cbe1249] Implemented my_strlen function 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 string.c
commit git log commit commit ID commit hash ID SHA-1 hash commit:
[jerry@CentOS project]$ git log
:
commit cbe1249b140dad24b2c35b15cc7e26a6f02d2277 Author: Jerry Mouse <jerry@tutorialspoint.com> Date: Wed Sep 11 08:05:26 2013 +0530 Implemented my_strlen function commit 19ae20683fc460db7d127cf201a1429523b0e319 Author: Tom Cat <tom@tutorialspoint.com> Date: Wed Sep 11 07:32:56 2013 +0530 Initial commit
Advertisements