IRC is acronym of Internet Relay Chat. IRC channels are the platforms where you can communicate with people of perticular communities. You can ask your queries there. You can join any community. Only required is to follow their etiquette otherwise they may kick you out of the channel. There are …
I have created files on my local machine. It includes assignments, projects, documents, sample programs in C, C++, Java etc. Now I don't have any single file with me as a proof of my work. Why does it happened? It all happened because of not storing my files anywhere. Also …
git clone
- The clone command tells Git to fetch files from remote repository
- “master” is the default name for a starting branch when you run git init
- “origin” is the default name for a remote when you run git clone
- If you run git clone -o newbrnach instead git clone …
git branch
- Branch is pointer to changes commited by you
What to do?
-
To check on which branch you are woking now
git brach
-
To create new branch
git branch
-
Change the working to branch to what you want
git checkout
-
Now just change one file
git status
-
Add this …
git push
- The push command tells Git where to put your commits when you are ready with your files
- “master” is the default name for a starting branch when you run git init
- “origin” is the default name for a remote when you run git clone
What to do?
-
Enter …
git add
- It will add the files to staging area
- To tell Git to start tracking changes made to file, we first need to add it to the STAGING AREA
git add -A .
The dot stands for the current directory, so everything in and beneath it is added. The -A …
git commit
- Commit is snapshot of the exact state of every tracked file in your working tree
- " git add " doesn't really affect the repository in any significant way
- changes are not actually recorded until you run " git commit "
- Basically git commit "records changes to the repository" and it is used …
git status
- It is healthy to run git status often
- Sometimes things change and you don’t notice it
- It gives the status of files like untracked, unmodified, staged and unstaged
staged:
Files are ready to be committed.
unstaged:
Files with changes that have not been prepared to be committed …
git init
- init stands for initialization
- Directory is a folder used for storing multiple files. It may be text or doc
- Repository is a directory where Git has been initialised to start version controlling your files
What to do?
-
Create one directory/folder
mkdir Documents/MyFolder
-
Go into that folder …