Skip to main content

Posts

Showing posts with the label github

Github : ignore files

Recently I have started working with git version control system and I’m loving it, especially the Git bash.  Usually in each and every project there are some files which we don’t want to commit and push on live again and again. For example configuration files and db files once committed don’t need to be modify again for live site. In such cases to stop manual intervention git provide us the facility to ignore files. Let’s discuss:   We can ignore files in two ways. 1) Using .gitignore file :  If you don’t want some files to be added and want to ignore them while uploading on  server, then you can use .gitignore file. For example you have a file named bkp_config.php and while pushing you code live you don’t want to push that file. In such cases you can use .gitignore file.    There are again two scenarios. a)      Files have already been tracked. Means first you have added the files, committed th...

Git on Windows : Directory Already exists

I just started exploring github. After handling basics of github through console I thought I will also try with GUI. So first link I was going through was “ Git on Windows for Newbs ”. While creating clone of existing repository “ https://github.com/dirtyhandsphp/test.git ” It asked me the target directory.    When I created a new one then I got the following error message. Solution is : You should select only the parent folder or directory from dialog box. Don’t use already existing folder as target directory where you want the code to reside. Write the folder name after parent path and create clone. For example :  Check Screen short 3 : I have selected parent directory with name Shiv from directory D:\ Screenshot 4 : Write the name of directory where you want your code to be there. Git will automatically create it.   Thanks!!!!!!!!! Enjoy Programming :)