87,996
社区成员




<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Gitgraph</title>
</head>
<body>
<div id="graph"></div>
<script>
import { createGitgraph } from "@gitgraph/js";
const graphContainer = document.getElementById("graph");
const gitgraph = createGitgraph(graphContainer);
const master = gitgraph.branch("master");
master.commit("Init the project");
master
.commit("Add README")
.commit("Add tests")
.commit("Implement feature");
master.tag("v1.0");
const newFeature = gitgraph.branch("new-feature");
newFeature.commit("Implement an awesome feature");
master.commit("Hotfix a bug");
newFeature.commit("Fix tests");
// Merge `newFeature` into `master`
master.merge(newFeature, "Release new version");
</script>
</body>
</html>