THE IT IDEAS

  • Home
Showing posts with label github. Show all posts
Showing posts with label github. Show all posts

Friday, 12 December 2014

How to move github local folder to another location.

 THE IT IDEAS     11:12     github   

Open your GitHub Clone folder and move ".git" folder to your destination folder.

Eg. Clone folder :: /var/www/html/htmwebsite
      Destination folder :: /var/www/html

#cd /var/www/html/htmlwebsite
#mv .git ../        or     mv .git /var/www/html

Then you can move your all files and folder from htmlwebsite to destination folder

#cd /var/www/html/htmlwebsite
#mv * ../           or     mv * /var/www/html

Thats It !! Now run status command to check git is recognise your destination folder or not.

#cd /var/www/html
#git status           <--- If GitHub is recognize folder it will showing message like below ...
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)

nothing to commit, working directory clean



All Done !!!
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Basic GitHub Commands

 THE IT IDEAS     11:09     github   

Clone remote github repository.
#git clone https://github.com/accountnameexample/example.git


After modify files or folder commit your changes on github repository.

#git add filename
#git commit -a     <-- Once you fire this command it will open nano editor to make note of this changes. Just write your note and save the file.

#git push https://github.com/accountnameexample/example.git   <-- This command will upload all your changes to github repo.


To Receive changes from github Repo.
#git pull https://github.com/accountnameexample/example.git     <-- This commnad will receive all changes from github repo to local repo.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Older Posts Home

Like Us !!!

Recent Posts

Blog Archive

  • ▼  2016 (1)
    • ▼  April (1)
      • How to Install PHP 7.0, Apache 2.4.18, & MySQL 5.7...
  • ►  2015 (12)
    • ►  August (1)
    • ►  May (2)
    • ►  April (8)
    • ►  March (1)
  • ►  2014 (23)
    • ►  December (8)
    • ►  November (12)
    • ►  April (2)
    • ►  March (1)
  • ►  2013 (7)
    • ►  December (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2012 (15)
    • ►  December (6)
    • ►  November (9)

Categories

apache2 EC2 error mysql php ubuntu aws aws rds browser github installation linux mount s3 AWS Bucket CentOS Computer DocumentRoot change How to Benchmarking Webserver IP LAMP Restart Computer SCP command SQL SERVER XRDP administrator amazon rds backup basic commands chat command line disable download drupal ec2.chroot environment external storage device fstab functions geoip gmail google home page iis instance internet java mod rewrite mongodb multiple login network password one password php5 php5-fpm php7 private browsing python repair filesystem repo reset password rhel sa password same computer script sftp share skype ssh tomcat ubuntu 16.04 ubuntu16 visudo windows 8 youtube
JobsMagBlogJobsMag.InThingsGuide

Popular Posts

  • MySQL Basic Commands for Linux
    How to login into mysql prompt For Remote MySQL Server. # [mysql dir]/bin/mysql -h hostname -u root -p   e.g. [mysql dir]/bin/mysql -h...
  • How to run a simple PHP web server
    # php -S localhost:8000 -t /path/to/folder/directory Above command give output like below PHP 5.6.4-4ubuntu6 Development Server started...
  • How to make Google Chrome Theme
    Open Google Chrome and open Chrome web store and search my chrome theme Click on Add to Chrome     Click on Add to downloadi...

Copyright © THE IT IDEAS | Powered by Blogger