在Ubuntu上使用PhpStorm管理版本,通常使用Git,步骤如下:
sudo apt update
和sudo apt install git
。git config --global user.name "Your Name"
和git config --global user.email "youremail@example.com"
设置用户名和邮箱。File
>Settings
(或Ctrl+Alt+S
)中,选择Version Control
>Git
,确认Path to Git executable
路径正确,点击OK
。Git
>Initialize Repository
。Git
>Add
。Git
>Commit Directory
,输入提交信息后点击Commit
。VCS
>Git
>Remotes
中点击+
添加远程仓库的名称和URL。此外,还可通过VCS
菜单进行拉取、合并分支等操作。