ข้ามไปที่เนื้อหาหลัก

git hub to git lab

Switching remote URLs from SSH to HTTPS

  1. Open Terminal.

  2. Change the current working directory to your local project.

  3. List your existing remotes in order to get the name of the remote you want to change.

    git remote -v
    origin  git@hostname:USERNAME/REPOSITORY.git (fetch)
    origin  git@hostname:USERNAME/REPOSITORY.git (push)
    
  4. Change your remote's URL from SSH to HTTPS with the git remote set-url command.

    git remote set-url origin https://hostname/USERNAME/REPOSITORY.git
    
  5. Verify that the remote URL has changed.

    git remote -v
    # Verify new remote URL
    origin  https://hostname/USERNAME/REPOSITORY.git (fetch)
    origin  https://hostname/USERNAME/REPOSITORY.git (push)

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

Docker Crash Course

 https://www.youtube.com/watch?v=pg19Z8LL06w ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬ 0:00 - Intro and Course Overview 02:54 - What is Docker? 03:51 - What problems Docker solves in development and deployment process 11:38 - Virtual Machine vs Docker 17:19 - Install Docker 21:36 - Docker Images vs Containers 26:32 - Docker Registries 29:38 - Docker Image Versions 32:02 - Main Docker Commands - Pull and Run Docker containers 39:06 - Port Binding 42:50 - Start and Stop containers 46:54 - Private Docker Registries 48:11 - Registry vs Repository 49:09 - Dockerfile - Dockerize Node.js app 58:30 - Build Image 1:02:39 - Docker UI Client 1:03:39 - Overview: Docker in complete software development lifecycle 1:06:38 - Where to go from here

Podman ==> Start Podman Containers on Boot

 https://www.server-world.info/en/note?os=AlmaLinux_9&p=podman&f=13 https://linuxhandbook.com/autostart-podman-containers/ [1] Generate Systemd unit file and Set auto-starting for containers. podman run --name almalinux-nginx -d -p 80:80 srv.world/almalinux-nginx podman generate systemd --new --files --name almalinux-nginx [2] Set auto-starting for pods.

Docker เปลียน containerไปเป็น image

https://github.com/limweb/testdockerfileenv/blob/master/docker-entrypoint.sh เราไม่จำเป็นต้องสร้าง image จาก dokcer file เสมอไปครับ วันนี้มีคำสั่งมาแนะนำ  docker commit  containerid  tag/name:latest เป็น คือครั้งแรกเราสร้าง container จาก image มาแล้ว  เวลาใช้งานไปเกิดปัญหาต่าง ๆ ต้องเข้าไปติดตั้งเพิ่ม ทำให้ image ต่างจากเดิมไปมาก สมมติว่า เราจำเป็นต้อง clone รูปแบบ container นี้มาใช้งาน ปัญหาเกิดละถ้าใช้ image ตั้งต้น ก็ต้องนึกให้ดีนะว่า ติดตั้งเพิ่มอะไรไปบ้าง เอานี้ไม่ต้องทำแล้ว ใช้คำสั่ง มันจะสร้าง image ให้อีกตัว และเราก็สามารถ push ขึ้น docker hub ได้ด้วย ตามปกติ เวลาใช้ตัวใหม่ก็แค่ กำหนดเป็น image ใหม่ที่สร้าง Jenkins, Travis, Bitbucket, Gitlab, AWS อื่นๆ