Posts

Showing posts with the label GIT

Rotation using CSS

Image
In HTML5, by using CSS3 we can rotate images on particular angle, and we can also set a time stamp for total duration to rotate the image.Click on image and it will rotate by 360 degrees. If you want to test this, You can enter particular angle in given text box and click on image to test. Please enter angle value (In degrees) Please enter time (In seconds)

Git configure on ubuntu

To configure GIT server on your ubuntu machine, Please follow following steps: Configure GIT Server 1. Make sure git is installed on your ubuntu machine. We can insure about this by following command  > git --version it should display the GIT version. 2. We need to create user for GIT. Perform following steps to create user : > sudo adduser username it will ask for password, Enter your new password for GIT and enter the correct information. > su username >  mkdir projectFolder > cd projectFolder > mkdir project.git > cd project.git > git --bare init Now your empty repository has been created. You can push files to this repo. Push files to GIT Server We can push files to GIT server from remote machines. Perform following steps to push files from a linux machine. 1. Create a folder, in which you want to clone your git project. > mkdir myGitProject > cd  myGitProject 2. We will clone our git project here. > gi...

Undo git add before commit

GIT Basics :       git add  moves changes from current working directory to another area. This is known as staging area and moving files from current directory to staging area is known as staging. So to undo our changes we can use following command :                                                                                                        git reset HEAD -- Their is also some other commands found, but i tried this one and it really helpful for me. Some other commands :  git reset FILE   git remove / git rm - Dont use this command, it will remove the file.