How to create/initialize git repository from local project or file structure create files if not exist in the local drive > git init #this will initialize a git repo , we can see by the .git file been created then stage the changes made on the local repo by > git add . > git commit -m "First commit" then create a new repo in github/gitlab then copy the url and issue the command > git remote add origin <url of the new git repo> > git push origin master To run the short command "git push" we need to issue the command >git push --set-upstream origin master then we can push with > git push
Posts
Showing posts from March, 2022
- Get link
- X
- Other Apps
Attach new disk to a google cloud VM sudo mkfs.ext4 -m 0 -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/sdb sudo mkdir -p /mnt/disks/cvat_volume_backup sudo mount -o discard,defaults /dev/sdb /mnt/disks/cvat_volume_backup #providing read and write access to all the users sudo chmod a+w /mnt/disks/cvat_volume_backup #take backup of the fstab file sudo cp /etc/fstab /etc/fstab.backup #get uuid sudo blkid /dev/sdb UUID=47a2be8f-b1ed-4556-8404-02cb6b8cd71e /mnt/disks/cvat_volume_backup ext4 discard,defaults,nofail 0 2 Reference : 1. Google doc