Below you will find pages that utilize the taxonomy term “Git”
Git directory outside working directory
I have an old PHP website that I wanted to have its code/content versioned with Git, normally Git setup the repo directory in the “.git” directory inside the working directory, but I faced a problem, if the working directory is accessible from the web server it means “.git” is also accessible too.
Luckily git have an option to have the repo directory located somewhere else using the GIT_DIR environment variable, so here what I did:
كيف تنشئ موقع انترنت مجانا
هل تملك عنوان بريد الكتروني تحت gmail او hotmail؟ ماذا لو بحثت عن اسمك هل ستظهر صفحتك في تويتر او فيس بوك؟
لماذا لا تقوم بحجز اسم نطاق خاص بك مثل www.rr.sa ويكون عنوانك البريدي هو rayed@rr.sa، وبالمجان ايضاً.
Source Code Management with GIT
I gave an introduction to Git in the last DevCamp meeting held on the 18h of April at Badir.
I hope you find it useful
My first Git Session
This guide for my own reference please don’t rely on it, for a better introduction check out Git Reference website.
Basic concept and terminologies, Git have 3 logical places:
- Working Area: normal directory where you edit your project.
- Staging Area: Think of the staging as your project state before you start your coding session, after each coding session you add your changes to staging area using
git add filename
orgit add .
- Snapshot Area: After multiple coding sessions you would finish a logical change, e.g. adding commenting system in web site, next you need to store a snapshot of your project after these changes, you would do that with
git commit
Setting the environment: