git 2018
First install Git.
Create repository in git.
Make a folder in desktop.
Go inside folder and right click to open git open here.
Now enter git init to initialize git.
Now add repository with git remote add origin "(clone-url)" and enter. So now origin has been added successfully.
Now enter git pull origin master to fetch all the files.
Now let's add (copy and paste) all the node angular files inside the main folder where git is initialized.
To see the status: git status. This will show all the new added files.
Now you have to upload these files to the repository. If there is only one file you can just enter git add edu1.txt or if you want to upload all the new files then you have to write git add --all. (or git add -A)
The next step is to commit the changes with some message:
git commit -m "First Commit". (For all the files to commit at the same time: git commit -a -m "First Commit")
Now if you enter git log, it will show how git will commit. sha1# code is shown, date, time and author is also shown.
If you enter ls it will list all the files inside the folder.
Now if you have to push after you commit. For this: git push -u origin master.
You can refresh your browser to see the changes.
Now let's say somebody changes the content in one of the file in git repository. Then you have to enter git pull to pull all the changes.
If you want to see the changes enter git show input.txt to view all the contents from input.txt
Create repository in git.
Make a folder in desktop.
Go inside folder and right click to open git open here.
Now enter git init to initialize git.
Now add repository with git remote add origin "(clone-url)" and enter. So now origin has been added successfully.
Now enter git pull origin master to fetch all the files.
Now let's add (copy and paste) all the node angular files inside the main folder where git is initialized.
To see the status: git status. This will show all the new added files.
Now you have to upload these files to the repository. If there is only one file you can just enter git add edu1.txt or if you want to upload all the new files then you have to write git add --all. (or git add -A)
The next step is to commit the changes with some message:
git commit -m "First Commit". (For all the files to commit at the same time: git commit -a -m "First Commit")
Now if you enter git log, it will show how git will commit. sha1# code is shown, date, time and author is also shown.
If you enter ls it will list all the files inside the folder.
Now if you have to push after you commit. For this: git push -u origin master.
You can refresh your browser to see the changes.
Now let's say somebody changes the content in one of the file in git repository. Then you have to enter git pull to pull all the changes.
If you want to see the changes enter git show input.txt to view all the contents from input.txt
Comments
Post a Comment